react-hotkeys
Version:
A declarative library for handling hotkeys and focus within a React application
15 lines (11 loc) • 627 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function isObject(target) {
return !Array.isArray(target) && _typeof(target) === 'object' && target !== null;
}
var _default = isObject;
exports.default = _default;