mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Git update
This commit is contained in:
parent
bd8d7eedb6
commit
602ca1128e
3123 changed files with 521005 additions and 521005 deletions
36
node_modules/is-function/index.js
generated
vendored
36
node_modules/is-function/index.js
generated
vendored
|
@ -1,18 +1,18 @@
|
|||
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))
|
||||
};
|
||||
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))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue