UNPKG

@dulysse1/better-node

Version:

Improve Node types & add object properties

20 lines (18 loc) 573 B
interface Array<T> { /** * @from `@dulysse1/better-node` * ### Destroy recursively element of your array * @param elem One or many elements of your array you want to destroy * @return {T[]} your array without dropped elements. */ drop<C extends T>(...elem: C[]): T[]; } interface ReadonlyArray<T> { /** * @from `@dulysse1/better-node` * ### Destroy recursively element of your array * @param elem One or many elements of your array you want to destroy * @return {T[]} your array without dropped elements. */ drop<C extends T>(...elem: C[]): T[]; }