shallow-equal-fuzzy
v0.0.2
Published
Fuzzy implementation of shallowEqual algoritm
Downloads
53,873
Readme
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