UNPKG

hd-utils

Version:

A handy utils for modern JS developers

6 lines (5 loc) 300 B
/** * @description will join all of the passed arrays to one single array, if the passed item is not an array it WILL NOT Add it. * @example joinArrays([1,2,3], [4,5,6], null ,undefined, "hello") // [1,2,3,4,5,6] */ export default function joinArrays<T>(...args: (T[] | null | undefined)[]): T[];