Skip to content
Malexion edited this page Oct 31, 2016 · 1 revision

__.search(obj, func, [options])

  • obj Item to search.
  • func Function/Item to search for, as a function it should return true if the item was found.
  • [options] [Optional] Params, { default: null, all: false, getKey: false }

Examples

var result = __.search([ 4, 2, 1, 6, 1000 ], x => x == 6);

console.log(result);
Clone this wiki locally