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
-
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.object.clone
License
MIT