src/object.js
/**
  * converts chars to hex codes
  *
  * @param string string object
  * @return string of hex
  */
converts chars to hex codes
@param string string object
@return string of hex
converts chars to hex codes @param string string object @return string of hex
utf8ToHex(str) {
    return Array.from(str).map(c =>
      c.charCodeAt(0) < 128 ? c.charCodeAt(0).toString(16) :
      encodeURIComponent(c).replace(/\%/g,'').toLowerCase()
    ).join('');
  }
utf8ToHex ( str ) { return Array . from ( str ) . map ( c => c . charCodeAt ( 0 ) < 128 ? c . charCodeAt ( 0 ) . toString ( 16 ) : encodeURIComponent ( c ) . replace ( / \% / g , '' ) . toLowerCase ( ) ) . join ( '' ) ; }
converts chars to hex codes
 @param string string object
 @return string of hex
converts chars to hex codes @param string string object @return string of hex