1 | import searchSubsequence from './searchSubsequence';
|
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 | */
|
9 | function isSubsequence(x, y, fc = null, fm = null) {
|
10 | return searchSubsequence(x, y, fc, fm) >= 0;
|
11 | }
|
12 | export default isSubsequence;
|
13 | //# sourceMappingURL=index.js.map |
\ | No newline at end of file |