Ready to Merge

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:30:31 +01:00
1 parent a4ed878fcd
commit 6318a27dde
4508 files changed

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
module.exports = isFunction
var toString = Object.prototype.toString
function isFunction (fn) {
if (!fn) {
return false
}
var string = toString.call(fn)
return string === '[object Function]' ||
(typeof fn === 'function' && string !== '[object RegExp]') ||
(typeof window !== 'undefined' &&
// IE8 and below
(fn === window.setTimeout ||
fn === window.alert ||
fn === window.confirm ||
fn === window.prompt))
};