getTag.js
function getTag(val) {
  const tag = Object.prototype.toString.call(val).slice(8, -1)

  if (basicTypes.includes(tag.toLowerCase())) {
    return tag.toLowerCase()
  }

  return tag
}
function getTag(val) {
  const tag = Object.prototype.toString.call(val).slice(8, -1)

  if (basicTypes.includes(tag.toLowerCase())) {
    return tag.toLowerCase()
  }

  return tag
}
function getTag ( val ) { const tag = Object . prototype . toString . call ( val ) . slice ( 8 , - 1 ) if ( basicTypes . includes ( tag . toLowerCase ( ) ) ) { return tag . toLowerCase ( ) } return tag }
Get a string with type name of the given value

@param {any} val

@return {string}

@api private
Get a string with type name of the given value