- 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);
- };
|