UNPKG

safe-push-apply

Version:

Push an array of items into an array, while being robust against prototype modification

7 lines (5 loc) 119 B
declare function safePushApply<T, S extends T>( target: T[], source: ArrayLike<S>, ): void; export = safePushApply;