We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Checks if iterable has a value. 🏃 📼 📦 🌔 📒
Similar: search, indexOf, isValue, includes.
iterable.includes(x, v, [i]); // x: an iterable // v: search value // i: start index (0)
const iterable = require('extra-iterable'); var x = [1, 2, -3]; iterable.includes(x, 3); // false iterable.includes(x, -3); // true