Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

neatequal

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neatequal

Neat deep equal.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

neatequal

neatequal is a neater deepEqual.

NPM version Build status Dependency Status devDependency Status Coverage Status Code Climate

neatEqual capture

Installation

First install neatequal in you project:

npm install --save neatequal

Getting started

Then, use it:

var neatequal = require('neatequal');

var expectedFruits = [{
  name: 'orange'
  count: 2,
  colors: ['orange']
}, {
	name: 'banana',
  count: 0,
  colors: ['yellow', 'white']
}, {
	name: 'kiwi',
  count: 8,
  colors: ['brown', 'green']
}];

var currentFruits = [{
  name: 'orange'
  count: 2,
  colors: ['yellow', 'orange']
}, {
	name: 'banana',
  count: 1,
  colors: ['white']
}];

neatequal(expectedFruits, currentFruits);

## API

### neatequal(current:Object, expected:Object) Throws an exception if current and expected objects doens'nt equal.

Contribute

Feel free to submit us your improvements. To do so, you must accept to publish your code under the MIT license.

To start contributing, first run the following to setup the development environment:

git clone git@github.com:nfroidure/neatequal.git
cd neatequal
npm install

Then, run the tests:

npm test

Stats

NPM NPM

Keywords

FAQs

Package last updated on 07 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc