Module

x/lodash_es/src/some.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/some.js";

Checks if predicate returns truthy for any element of collection. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, index|key, collection).

Examples

_.some([null, 0, 'yes', false], Boolean); // => true

var users = [ { 'user': 'barney', 'active': true }, { 'user': 'fred', 'active': false } ];

// The _.matches iteratee shorthand. _.some(users, { 'user': 'barney', 'active': false }); // => false

// The _.matchesProperty iteratee shorthand. _.some(users, ['active', false]); // => true

// The _.property iteratee shorthand. _.some(users, 'active'); // => true

Parameters

collection

The collection to iterate over.

predicate
guard