@kingjs/map.scorch
v1.0.0
Published
Deletes properties with `undefined` value.
Readme
@kingjs/map.scorch
Deletes properties with undefined value.
Usage
var scorch = require('@kingjs/scorch');
var source = { a: undefined };
var result = scorch.call(source);
'a' in result;result:
`false`API
declare function scorch(
this: any
): anyParameters
this: Object whose properties withundefinedvalues are to be deleted.
Returns
Returns this after properties with undefined value have been deleted.
Install
With npm installed, run
$ npm install @kingjs/map.scorchLicense
MIT
