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