@f/clone-obj

1.1.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    125
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    125
  • 1.1.1
    1
  • 1.1.0
    1

Package Sidebar

Install

npm i @f/clone-obj

Weekly Downloads

127

Version

1.1.2

License

MIT

Last publish

Collaborators

  • f