Skip to content

Alternative isEqual function based on a stable version of JSON.stringify.

License

Notifications You must be signed in to change notification settings

fabiospampinato/json-is-sorted-equal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Is Sorted Equal

Alternative isEqual function based on a stable version of JSON.stringify.

Install

npm install json-is-sorted-equal

Usage

import isEqual from 'json-is-sorted-equal';

// Let's check if two objects are equal

isEqual ( { a: 1, b: 2 }, { b: 2, a: 1 } ); // true
isEqual ( { a: 1, b: 2 }, { a: 1, b: 2, c: 3 } ); // false

License

MIT © Fabio Spampinato

About

Alternative isEqual function based on a stable version of JSON.stringify.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published