shallow-equal-fuzzy

0.0.2 • Public • Published

Build Status NPM version Coverage Status

About shallow-equal-fuzzy

Update version of shallowEqual algoritm from https://github.com/facebook/fbjs/blob/master/src/core/shallowEqual.js with fuzzy functionality

import sef from "shallow-equal-fuzzy";
sef("1", 1) === true;
sef([1, 2, 3], [3, 2, 1]) === true;
sef([1, "2", 3], ["3", 2, 1]) === true;
sef({ id: 1}, { id: "1"}) === true;
sef([{ id: 1}], [{id: "1"}]) === true;
 
// other functionality inherit from origin implementation

Readme

Keywords

none

Package Sidebar

Install

npm i shallow-equal-fuzzy

Weekly Downloads

8,619

Version

0.0.2

License

MIT

Last publish

Collaborators

  • lexich