stripBom.js 147 B

12345678
  1. exports = function(str) {
  2. if (str.charCodeAt(0) === 0xfeff) {
  3. return str.slice(1);
  4. }
  5. return str;
  6. };
  7. module.exports = exports;