GitXplorerGitXplorer
L

js-object-equal

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
ce73711dc14abe801a75fbb3ae0af6efc9d8a387

Update README.md

LLucianoPAlmeida committed 9 years ago
Unverified
3e74851a293802c1520bc415cf1ee71e8bc0a95e

Update README.md

LLucianoPAlmeida committed 9 years ago
Unverified
33629589538d9233707c7ba015c25eba394d447e

Update README.md

LLucianoPAlmeida committed 9 years ago
Unverified
880a1266833cb9865718d0f7a40c1c64382aa9e5

Update README.md

LLucianoPAlmeida committed 9 years ago
Unverified
29838e953b591788d2984c9ac3a3c5d71ec9e71d

Delete object-equal.js

LLucianoPAlmeida committed 9 years ago
Unverified
840afd2948e130fde3e327d6e01c12148e173fa9

files names change

LLucianoPAlmeida committed 9 years ago

README

The README file for this repository.

js-object-equal

##Introduction A convinience extension in both object and array prototypes to test equalitity of javascript objects and arrays. It's just a simple convenience method to check if an object it's equal to another.

##Exemple

let a = {x : 1, y: 3};
let b = {x : 1, y: 3};
console.log('equals = ' + a.equals(b)); //equals = true

For default uses not value and type compations. But you can add a boolean parameter to make a deep comparation.

let a = {x : 1, y: '3'};
let b = {x : 1, y: 3};
console.log('equals = ' + a.equals(b)); //equals = true
console.log('equals = ' + a.equals(b, true)); //equals = false

##Usage In your file package.json and the js-object-equal@1.0.0 dependence. And run :

npm update
```