cereal.js
// Helper Function: Convert String To HTTP Friendly
Helper Function: Convert String To HTTP Friendly
Helper Function : Convert String To HTTP Friendly
function httpFriendly(string) {
  let friendlyString = ""
  for (let i = 0; i < string.length; i++) {
    if (string[i] == " ") {
      friendlyString = friendlyString + "%20"
    }
    else {
      friendlyString = friendlyString + string[i]
    }
  }
}
function httpFriendly ( string ) { let friendlyString = "" for ( let i = 0 ; i < string . length ; i ++ ) { if ( string [ i ] == " " ) { friendlyString = friendlyString + "%20" } else { friendlyString = friendlyString + string [ i ] } } }
Helper Function: Convert String To HTTP Friendly
Helper Function : Convert String To HTTP Friendly