@kingjs/descriptor.object.clone

1.0.1 • Public • Published

@kingjs/descriptor.object.clone

Returns a mutable clone of a descriptor.

Usage

var clone = require('@kingjs/descriptor.object.clone');
var target = { x:0 };
clone.call(target);

result:

{ x:0 }

API

declare function clone(
  this: Descriptor
): any

Interfaces

Parameters

  • this: The descriptor to clone.

Returns

Returns a mutable clone of the descriptor.

Remarks

Install

With npm installed, run

$ npm install @kingjs/descriptor.object.clone

License

MIT

Analytics

Readme

Keywords

none

Package Sidebar

Install

npm i @kingjs/descriptor.object.clone

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • kingces95