function getTypeName(val) {
  if (isNull(val)) return upper(NULL)
  return (typeof val === OBJECT) ? ctorName(val) : Object.prototype.toString.call(val).slice(8, -1)
}
Returns the object type of the given payload
@param {*} val
@returns {string}