1.0.1 • Published 8 years ago

@f/equal v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

equal

Build status Git tag NPM version Code style

Check two things for shallow equality

Installation

$ npm install @f/equal

Usage

var equal = require('@f/equal')

if (equal(nextProps, prevProps)) {
  component.render(nextProps)
}

API

equal(a, b)

  • a - An array/object/value to check against b for equality
  • b - An array/object/value to check against a for equality

Returns: A Boolean value indicating whether a and b are shallow equal.

License

MIT