@lesnoypudge/utils
Version:
lesnoypudge's utils
13 lines (12 loc) • 322 B
JavaScript
import { shallowEqual as shallowEqual$1 } from "shallow-equal";
const shallowEqual = (a, b) => {
if (typeof a !== typeof b) return false;
if (typeof a === "object" && typeof b === "object") {
return shallowEqual$1(a, b);
}
return a === b;
};
export {
shallowEqual
};
//# sourceMappingURL=shallowEqual.js.map