UNPKG

371 BJavaScriptView Raw
1'use strict';
2var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');
3var classof = require('../internals/classof');
4
5// `Object.prototype.toString` method implementation
6// https://tc39.es/ecma262/#sec-object.prototype.tostring
7module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
8 return '[object ' + classof(this) + ']';
9};