UNPKG

cssprima

Version:

The most standards compliant CSS parser.

28 lines (22 loc) 566 B
'use strict'; function SpecialString() { this.value = ''; } SpecialString.prototype = { constructor: SpecialString, append: function () { var i, argument; for (i = 0; i < arguments.length; i += 1) { argument = arguments[i]; if (typeof argument === 'string') { this.value += argument; } else { this.value += String.fromCharCode(argument); } } }, toString: function () { return this.value; } }; module.exports = SpecialString;