UNPKG

instantsearch-ui-components

Version:

Common UI components for InstantSearch.

15 lines (14 loc) 310 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.find = find; function find(array, predicate) { for (var index = 0; index < array.length; index++) { var item = array[index]; if (predicate(item, index, array)) { return item; } } return undefined; }