first commit
This commit is contained in:
14
F4SDwebService/Scripts/src/utils/isFunction.js
Normal file
14
F4SDwebService/Scripts/src/utils/isFunction.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Check if the given variable is a function
|
||||
* @method
|
||||
* @memberof Popper.Utils
|
||||
* @argument {Any} functionToCheck - variable to check
|
||||
* @returns {Boolean} answer to: is a function?
|
||||
*/
|
||||
export default function isFunction(functionToCheck) {
|
||||
const getType = {};
|
||||
return (
|
||||
functionToCheck &&
|
||||
getType.toString.call(functionToCheck) === '[object Function]'
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user