mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-28 07:56:33 +01:00
15 lines
377 B
JavaScript
Vendored
15 lines
377 B
JavaScript
Vendored
/**
|
|
* 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]'
|
|
);
|
|
}
|