UNPKG

@extra-array/has-subsequence

Version:

Checks if array has a subsequence.

13 lines (12 loc) 463 B
declare module "@extra-array/has-subsequence" { import type { compareFn, mapFn } from "./_types"; /** * Checks if array has a subsequence. * @param x an array * @param y subsequence? * @param fc compare function (a, b) * @param fm map function (v, i, x) */ declare function hasSubsequence<T, U = T>(x: Iterable<T>, y: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean; export = hasSubsequence; //# sourceMappingURL=hasSubsequence.d.ts.map}