code: 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;
  }
docs: Removes the UTF-16 byte order mark, if any, from a string.
  
  @param {string} str
  @returns {string}