Returns a array that replaced the empty element to undefined from the given array
Optional
The arrays to inspect
a array that replaced the empty element to undefined from the given array
David Hsing
emptyAsUndefined(['foo', 'bar']); // ['foo', 'bar']emptyAsUndefined(['foo', '']); // ['foo', undefined]emptyAsUndefined(['', 'bar']); // [undefined, 'bar'] Copy
emptyAsUndefined(['foo', 'bar']); // ['foo', 'bar']emptyAsUndefined(['foo', '']); // ['foo', undefined]emptyAsUndefined(['', 'bar']); // [undefined, 'bar']
Returns a array that replaced the empty element to undefined from the given array