function isFunction(functionToCheck) {
  var getType = {}
  return (
    functionToCheck &&
    getType.toString.call(functionToCheck) === '[object Function]'
  )
}
Check if the given variable is a function
@function
@ignore
@argument {*} functionToCheck - variable to check
@returns {Boolean} answer to: is a function?