null-to-undefined
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

/null-to-undefined/

    Package Sidebar

    Install

    npm i null-to-undefined

    Weekly Downloads

    17

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    5.65 kB

    Total Files

    10

    Last publish

    Collaborators

    • leondreamed