node-objs
v0.0.4
Published
deal with js object
Downloads
1
Readme
node-objs
A light weight module to deal with js object.
install
npm install node-objs --save
example
import { clone, isEqual } from 'node-objs'
const obj = { foo: 'bar' }
const newObj = clone(obj)
console.log(newObj) // { foo: 'bar' }
obj === newObj // false
isEqual(obj, newObj) // true
obj.foo = 'text' // { foo: 'text' }
console.log(newObj) // { foo: 'bar' }
isEqual(obj, newObj) // false