UNPKG

@extra-array/has-suffix

Version:

Checks if array ends with a suffix.

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