artdaq_node_server  v1_00_09
 All Classes Namespaces Files Variables Pages
/scratch/workspace/artdaq_demo-release-build/SLF7/s48-e14-prof/build/artdaq_node_server/v1_00_09/src/node_modules/xml2js/node_modules/xmlbuilder/node_modules/lodash/findIndex.js

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

_.findIndex(users, function(o) { return o.user == 'barney'; }); // => 0

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

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

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