ethereumjs-monorepo

@ethereumjs/util


@ethereumjs/util / stripHexPrefix

Function: stripHexPrefix()

stripHexPrefix(str): string

Defined in: packages/util/src/internal.ts:49

Removes ‘0x’ from a given String if present

Parameters

str

string

the string value

Returns

string

the string without 0x prefix