null-to-undefined
v1.1.2
Published
Converts null in an object to undefined.
Downloads
79
Maintainers
Readme
null-to-undefined
Recursively converts null
values in an array/object to undefined
.
Installation
npm install null-to-undefined
Usage
import nullToUndefined from 'null-to-undefined';
console.log(nullToUndefined([null, 2, { foo: 'string', bar: null }])); // [undefined, 2, { foo: 'string', bar: undefined }]