@micro-js/clone-obj
1.0.0 • Public • Published
clone-obj

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
nonePackage Sidebar
Install
npm i @micro-js/clone-obj
Weekly Downloads