artdaq_node_server
v1_00_08
|
var objects = [{ 'x': 4 }, { 'x': 5 }];
_.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; }); // => 0
// The _.property
iteratee shorthand. _.sortedIndexBy(objects, { 'x': 4 }, 'x'); // => 0