@kingjs/descriptor.nested.array.scorch

1.0.3 • Public • Published

@kingjs/descriptor.nested.array.scorch

Clears an array tree of undefined values.

Usage

Scorch an array tree of values like this:

'use strict';

var values = [
  undefined,
  ['tiger'],
  [undefined]
]

scorch(values);

values;

result:

[ [ 'tiger'] [ ] ]

API

declare function scorch(
  tree: NestedDescriptor
): void

Interfaces

Parameters

  • tree: The array tree whose nodes will be purged of properties with undefined values.

Install

With npm installed, run

$ npm install @kingjs/descriptor.nested.array.freeze

License

MIT

Analytics

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/descriptor.nested.array.scorch

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • kingces95