asd/asd-wx/node_modules/core-js/internals/is-object.js

13 lines
494 B
JavaScript
Raw Normal View History

2024-11-21 11:32:11 +08:00
var isCallable = require('../internals/is-callable');
var documentAll = typeof document == 'object' && document.all;
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
} : function (it) {
return typeof it == 'object' ? it !== null : isCallable(it);
};