We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Pick an arbitrary key.
Similar: randomKey, keys, has.
function randomKey(x, fr) // x: ilists // fr: random number generator ([0, 1))
const xilists = require('extra-ilists'); var x = [['a', 'b', 'c'], [1, 2, 3]]; xilists.randomKey(x); // → 'c' xilists.randomKey(x); // → 'b'