import { equiv as _eq } from "@thi.ng/equiv" ; remarks This means `buf` should have at least the same length as `needle` for
 * this to be true.
 *
 * By default, uses  {@link @thi.ng/equiv#equiv} for equality checking.
 *
 *  startsWith param buf param needle param equiv export const endsWith = < T > ( buf , needle , equiv = _eq ) => { let i = buf . length ; let j = needle . length ; if ( i < j ) return false ; while ( ( -- i , j -- > 0 && equiv ( buf [ i ] , needle [ j ] ) ) ) { } return j < 0 ; } ;