1.1.2 • Published 4 years ago
null-to-undefined v1.1.2
null-to-undefined
Recursively converts null values in an array/object to undefined.
Installation
npm install null-to-undefinedUsage
import nullToUndefined from 'null-to-undefined';
console.log(nullToUndefined([null, 2, { foo: 'string', bar: null }])); // [undefined, 2, { foo: 'string', bar: undefined }]