1.1.2 • Published 2 years ago

null-to-undefined v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

null-to-undefined

npm version

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 }]