1.0.7 • Published 6 years ago

@kingjs/descriptor.nested.array.freeze v1.0.7

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

@kingjs/descriptor.nested.array.to-array

Freezes an array tree and it's values.

Usage

Freeze a array tree of descriptors like this:

'use strict';

var freeze = require('@kingjs/descriptor.nested.array.freeze');

var values = [
  {},
  [{}],
  0
]

freeze(values);

result:

[
  {},
  [{}],
  0
]

API

declare function freeze(
  tree: NestedDescriptor,
): void

Interfaces

Parameters

  • tree: The array tree whose nodes and values will be frozen.

Install

With npm installed, run

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

License

MIT

Analytics