Sha256: 38d9485d3bf825b68561f526884a5992de91d0ce9a7703bf1f73ba314baa2a00
Contents?: true
Size: 474 Bytes
Versions: 12
Compression:
Stored size: 474 Bytes
Contents
'use strict'; var classof = require('../internals/classof'); var wellKnownSymbol = require('../internals/well-known-symbol'); var TO_STRING_TAG = wellKnownSymbol('toStringTag'); var test = {}; test[TO_STRING_TAG] = 'z'; // `Object.prototype.toString` method implementation // https://tc39.github.io/ecma262/#sec-object.prototype.tostring module.exports = String(test) !== '[object z]' ? function toString() { return '[object ' + classof(this) + ']'; } : test.toString;
Version data entries
12 entries across 12 versions & 4 rubygems