{"ScriptPreparationCode":"function myFindWhere(array, criteria) {\r\n return array.find(item =\u003E Object.keys(criteria).every(key =\u003E item[key] === criteria[key]))\r\n}","TestCases":[{"Name":"_.findWhere","Code":"const array = [{\u0022a\u0022:0, \u0022b\u0022:1}, {\u0022a\u0022:1}, {\u0022b\u0022:1}];\r\nconst criteria = {\u0022a\u0022:0};\r\n_.findWhere(array, criteria);","IsDeferred":false},{"Name":"Native","Code":"const array = [{\u0022a\u0022:0, \u0022b\u0022:1}, {\u0022a\u0022:1}, {\u0022b\u0022:1}];\r\nconst criteria = {\u0022a\u0022:0};\r\nmyFindWhere(array, criteria); ","IsDeferred":false}]}