0.0.2 • Published 8 years ago

shallow-equal-fuzzy v0.0.2

Weekly downloads
10,167
License
MIT
Repository
github
Last release
8 years ago

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