'use strict';module.exports=x=>{if(typeofx!=='string'){thrownewTypeError('Expected a string, got '+typeofx);}// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string// conversion translates it to FEFF (UTF-16 BOM)if(x.charCodeAt(0)===0xFEFF){returnx.slice(1);}returnx;};