Buckets:
| ; | |
| 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; | |
| }; | |
Xet Storage Details
- Size:
- 317 Bytes
- Xet hash:
- 8f374e2053c10d49d581fb3bc636799b1d3b56a8acfdd29f61c08fe0b3b6fbf4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.