Skip to main content

@learncard/helpers

Functions

isEncrypted

isEncrypted(item): item is Object

Determines whether or not an object is an encrypted JWE

Parameters

NameType
itemRecord<string, any>

Returns

item is Object

Defined in

learn-card-helpers/src/index.ts:11


isHex

isHex(str): boolean

Determines whether or not a string is a valid hexadecimal string

E.g. 'abc123' is valid hex, 'zzz' is not

Parameters

NameType
strstring

Returns

boolean

Defined in

learn-card-helpers/src/index.ts:8