UNPKG

@extra-array/is-prefix

Version:

Checks if array starts with a prefix.

11 lines 380 B
import type { compareFn, mapFn } from './_types'; /** * Checks if array starts with a prefix. * @param x an array * @param y prefix? * @param fc compare function (a, b) * @param fm map function (v, i, x) */ declare function isPrefix<T, U = T>(x: T[], y: T[], fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean; export default isPrefix; //# sourceMappingURL=index.d.ts.map