UNPKG

@atlaskit/pragmatic-drag-and-drop-hitbox

Version:

An optional package for Pragmatic drag and drop that enables the attaching of interaction information to a drop target

16 lines (15 loc) • 357 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isShallowEqual = isShallowEqual; function isShallowEqual(a, b) { var aKeys = Object.keys(a); var bKeys = Object.keys(b); if (aKeys.length !== bKeys.length) { return false; } return aKeys.every(function (key) { return Object.is(a[key], b[key]); }); }