UNPKG

@extra-array/is-subsequence

Version:

Checks if array has a subsequence.

11 lines 408 B
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 isSubsequence<T, U = T>(x: Iterable<T>, y: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean; export default isSubsequence; //# sourceMappingURL=index.d.ts.map