react-redux-provide
Version:
Build your UI with React. Manage application state with Redux providers. Persist and share application state with replication. Use pure functions everywhere.
25 lines (19 loc) • 805 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
exports.default = getRelevantKeys;
function getRelevantKeys() {
var a = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var relevantKeys = [];
if ((typeof b === 'undefined' ? 'undefined' : _typeof(b)) === 'object') {
for (var key in b) {
if (key in a) {
relevantKeys.push(key);
}
}
}
return relevantKeys;
}