@kingjs/map.scorch

1.0.0 • Public • Published

@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
): any

Parameters

  • this: Object whose properties with undefined values are to be deleted.

Returns

Returns this after properties with undefined value have been deleted.

Install

With npm installed, run

$ npm install @kingjs/map.scorch

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/map.scorch

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.31 kB

Total Files

4

Last publish

Collaborators

  • kingces95