包详细信息

shallow-equal-fuzzy

lexich43.9kMIT0.0.2

Fuzzy implementation of shallowEqual algoritm

自述文件

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