artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
/scratch/workspace/artdaq-demo-v2_10_00/SLF7/s48-e14-debug/build/artdaq_node_server/v1_00_08/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