1.0.4 • Published 6 years ago

@kingjs/mutate.scorch v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@kingjs/mutate.scorch

Deletes properties with undefined value.

Usage

var scorch = require('@kingjs/mutate.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/mutate.scorch

License

MIT

Analytics

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago