UNPKG

pig-dam-core

Version:

Library that should be included in every Pig DAM project we build

18 lines 589 B
/** * Date: 2019-07-09 * Time: 21:54 * @license MIT (see project's LICENSE file) */ import { FailurePolicy } from "../types"; import { ArrayInsertLocation, ArraySearchCriteria } from "../types/mutation"; /** * Finds the insertion index * @throws {Error} */ export declare function findInsertLocation<T>(array: T[], location: ArrayInsertLocation<T>): number; /** * Find index with given criteria * @throws {Error} */ export declare function searchCriteriaToIndex<T>(array: T[], criteria: ArraySearchCriteria<T>, onFail?: FailurePolicy): number; //# sourceMappingURL=utils.d.ts.map