to-string-tag-x

v2.1.2
Get an object's ES6 @@toStringTag.
toStringTag module javascript nodejs browser

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

to-string-tag-x

Get an object's ES6 @@toStringTag.

See: 19.1.3.6 Object.prototype.toString ( )

module.exports(value)string

The toStringTag method returns "[object type]", where type is the object type.

Kind: Exported function
Returns: string - The object type string.

Param Type Description
value * The object of which to get the object type string.

Example

import toStringTag from 'to-string-tag-x';

console.log(toStringTag({})); // returns '[object Object]'
npm i to-string-tag-x

Metadata

  • MIT
  • >=8.11.4
  • Graham Fairweather
  • released 8/28/2019

Downloads

Maintainers