0.0.4 • Published 7 years ago

node-objs v0.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

node-objs

A light weight module to deal with js object.

Build Status Coverage Status

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