UNPKG

408 BTypeScriptView Raw
1import type { compareFn, mapFn } from './_types';
2/**
3 * Checks if array has a subsequence.
4 * @param x an array
5 * @param y subsequence?
6 * @param fc compare function (a, b)
7 * @param fm map function (v, i, x)
8 */
9declare function isSubsequence<T, U = T>(x: Iterable<T>, y: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean;
10export default isSubsequence;
11//# sourceMappingURL=index.d.ts.map
\No newline at end of file