dnull
v1.0.2
Published
Replace null with undefined on any value
Downloads
8,730
Readme
dnull
Installation
npm install dnull
Usage
import { dnull } from "dnull";
const obj = {
name: "john",
address: {
street: "john's street",
number: null,
tags: [1, 2, null, 4],
},
};
typeof dnull(obj); // { name: "john", address: { street: "john's street", number: undefined, tags: [ 1, 2, undefined, 4 ] } }