@f/clone-obj

Shallow clone an object

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/clone-obj
001.1.26 years ago6 years agoMinified + gzip package size for @f/clone-obj in KB

Readme

clone-obj

Build status Git tag NPM version Code style

Create a shallow copy of an object.

Installation

$ npm install @f/clone-obj

Usage

var cloneObj = require('@f/clone-obj')

cloneObj({a: 1, b: 'test'})

API

cloneObj(obj)

  • obj - The object to be cloned

Returns: A new object, containing identical keys and values.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.