web3-validatorFunctionsisHexPrefixedisHexPrefixed CallableisHexPrefixed(str: string): booleanReturns a Boolean on whether or not the a String starts with '0x'@throwsif the str input is not a stringParametersstr: stringthe string input valueReturns booleana boolean if it is or is not hex prefixed
Returns a
Boolean
on whether or not the aString
starts with '0x'if the str input is not a string