JSPM

  • Created
  • Published
  • Downloads 5697
  • Score
    100M100P100Q123144F
  • License MIT

Get an object's ES6 @@toStringTag.

Package Exports

  • to-string-tag-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (to-string-tag-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

to-string-tag-x

Travis status Dependency status devDependency status npm version

Get an object's ES6 @@toStringTag.

Requires ES3 or above.

See: 19.1.3.6 Object.prototype.toString ( )
Version: 1.1.1
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

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

var o = new Object();

toStringTag(o); // returns '[object Object]'