@micro-js/clone-obj

1.0.0 • Public • Published

clone-obj

Build status Git tag NPM version Code style

Create a shallow copy of an object.

Installation

$ npm install @micro-js/clone-obj

Usage

var cloneObj = require('@micro-js/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

Readme

Keywords

none

Package Sidebar

Install

npm i @micro-js/clone-obj

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • micro-js