@kingjs/mutate.scorch

Deletes properties with `undefined` value.

Stats

StarsIssuesVersionUpdatedCreatedSize
@kingjs/mutate.scorch
1.0.43 years ago3 years agoMinified + gzip package size for @kingjs/mutate.scorch in KB

Readme

@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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.