UNPKG

@toreda/strong-types

Version:

Better TypeScript code in fewer lines.

10 lines (9 loc) 239 B
/** * Remove an array element in O(1) time if element ndx is known. * Works only with unordered arrays. * @param array * @param ndx * * @category Collections */ export declare function swapPop<T>(array: T[], ndx: number): T | null;