Utilities for array
David Hsing
Returns the array that adds the given element
Optional
The arrays to inspect
The element to add
the array that adds the given element
add(undefined, 'bar'); // ['bar']add(['foo', 'bar'], undefined); // ['foo', 'bar']add(['foo', 'bar'], 'world'); // ['foo', 'bar', 'world'] Copy
add(undefined, 'bar'); // ['bar']add(['foo', 'bar'], undefined); // ['foo', 'bar']add(['foo', 'bar'], 'world'); // ['foo', 'bar', 'world']
Utilities for array
Author
David Hsing