deep-prune
Deeply prunes null
or undefined
values from an array or object.
You can also customize the values that get pruned.
Usage
; ;// { bar: 100 } ;// [1, ""] ;// [{ foo: { buzz: 2 } }] ;// [2, 3]
Deeply prunes null
or undefined
values from an array or object.
You can also customize the values that get pruned.
; ;// { bar: 100 } ;// [1, ""] ;// [{ foo: { buzz: 2 } }] ;// [2, 3]
npm i deep-prune
1
0.2.0
MIT
29.3 kB
9