Bolshakova Anna ab21a11190 lab 3 недель назад
..
test ab21a11190 lab 3 недель назад
.eslintrc ab21a11190 lab 3 недель назад
CHANGELOG.md ab21a11190 lab 3 недель назад
LICENSE ab21a11190 lab 3 недель назад
README.md ab21a11190 lab 3 недель назад
index.d.ts ab21a11190 lab 3 недель назад
index.js ab21a11190 lab 3 недель назад
package.json ab21a11190 lab 3 недель назад
tsconfig.json ab21a11190 lab 3 недель назад

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