UNPKG

hd-utils

Version:

A handy utils for modern JS developers

10 lines (9 loc) 430 B
/** * Gets the `toStringTag` of `value`. * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag * @description The Symbol.toStringTag static data property represents the well-known symbol @@toStringTag. * @example getTag("foo"); // "[object String]" * @example getTag([1, 2]); // "[object Array]" */ declare function getTag(value: unknown): string; export default getTag;