1.0.1 • Published 6 years ago

@kingjs/descriptor.clone v1.0.1

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

@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

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

Analytics