Sha256: 0fde7fd5ccd93e8ab043ea2f9dca6ec52c6e15fa5d4c66ac135e32c82a64517f
Contents?: true
Size: 317 Bytes
Versions: 106
Compression:
Stored size: 317 Bytes
Contents
'use strict'; module.exports = x => { if (typeof x !== 'string') { throw new TypeError('Expected a string, got ' + typeof x); } // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string // conversion translates it to FEFF (UTF-16 BOM) if (x.charCodeAt(0) === 0xFEFF) { return x.slice(1); } return x; };
Version data entries
106 entries across 103 versions & 9 rubygems