UNPKG

@polkadot/util-crypto

Version:
11 lines (10 loc) 229 B
/** * @name base64Trim * @description Trims padding characters */ export function base64Trim(value) { while (value.length && value[value.length - 1] === '=') { value = value.slice(0, -1); } return value; }