safeConcat
safeConcat<
T>(array,items):T[]
Defined in: array/safe-concat.ts:10
Safely concatenate an array with an array of items which may be a mix of undefined and defined values. This function returns a new array and does not mutate the original.
Type Parameters
T
T
Parameters
array
T[]
items
(T | null | undefined)[]
Returns
T[]