UNPKG

recharts

Version:
20 lines (19 loc) 493 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shallowEqual = shallowEqual; function shallowEqual(a, b) { /* eslint-disable no-restricted-syntax */ for (var key in a) { if ({}.hasOwnProperty.call(a, key) && (!{}.hasOwnProperty.call(b, key) || a[key] !== b[key])) { return false; } } for (var _key in b) { if ({}.hasOwnProperty.call(b, _key) && !{}.hasOwnProperty.call(a, _key)) { return false; } } return true; }