swc/crates/swc_bundler/tests/.cache/untrusted/106a306d511b1605d7b0e43c7c52563168fc1bec.ts
2021-11-09 20:42:49 +09:00

21 lines
464 B
TypeScript

// Loaded from https://raw.githubusercontent.com/lodash/lodash/master/.internal/getTag.js
const toString = Object.prototype.toString
/**
* Gets the `toStringTag` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function getTag(value) {
if (value == null) {
return value === undefined ? '[object Undefined]' : '[object Null]'
}
return toString.call(value)
}
export default getTag