Ryuiso b1774d2c86 no message 1 жил өмнө
..
test b1774d2c86 no message 1 жил өмнө
.eslintrc b1774d2c86 no message 1 жил өмнө
CHANGELOG.md b1774d2c86 no message 1 жил өмнө
LICENSE b1774d2c86 no message 1 жил өмнө
README.md b1774d2c86 no message 1 жил өмнө
index.js b1774d2c86 no message 1 жил өмнө
package.json b1774d2c86 no message 1 жил өмнө

README.md

es-set-tostringtag Version Badge

github actions coverage License Downloads

npm badge

A helper to optimistically set Symbol.toStringTag, when possible.

Most common usage:

var assert = require('assert');
var setToStringTag = require('es-set-tostringtag');

var obj = {};

assert.equal(Object.prototype.toString.call(obj), '[object Object]');

setToStringTag(obj, 'tagged!');

assert.equal(Object.prototype.toString.call(obj), '[object tagged!]');

Tests

Simply clone the repo, npm install, and run npm test