1.0.1 • Published 6 years ago
@kingjs/descriptor.clone v1.0.1
@kingjs/descriptor.clone
Returns a mutable clone of a descriptor.
Usage
var clone = require('@kingjs/descriptor.clone');
var target = { x:0 };
clone.call(target);
result:
{ x:0 }
API
declare function clone(
this: Descriptor
): any
Interfaces
Descriptor
: see @kingjs/descriptor
Parameters
this
: The descriptor to clone.
Returns
Returns a mutable clone of the descriptor.
Remarks
Install
With npm installed, run
$ npm install @kingjs/descriptor.clone
License
MIT