Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
18
VApp/node_modules/is-function/index.js
generated
vendored
Normal file
18
VApp/node_modules/is-function/index.js
generated
vendored
Normal file
@@ -0,0 +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))
|
||||
};
|
||||
Reference in New Issue
Block a user