lib/plugins/ArrayDecoderPlugin.js
function stripBOM (str) {
  var bom = str.charCodeAt(0);

  // Check for the UTF-16 byte order mark (0xFEFF or 0xFFFE)
  if (bom === 0xFEFF || bom === 0xFFFE) {
    return str.slice(1);
  }

  return str;
}
function stripBOM (str) {
  var bom = str.charCodeAt(0);

  // Check for the UTF-16 byte order mark (0xFEFF or 0xFFFE)
  if (bom === 0xFEFF || bom === 0xFFFE) {
    return str.slice(1);
  }

  return str;
}
function stripBOM ( str ) { var bom = str . charCodeAt ( 0 ) ; // Check for the UTF-16 byte order mark (0xFEFF or 0xFFFE) if ( bom === 0xFEFF || bom === 0xFFFE ) { return str . slice ( 1 ) ; } return str ; }
Removes the UTF-16 byte order mark, if any, from a string.

@param {string} str
@returns {string}
Removes the UTF - 16 byte order mark if any from a string .