@learncard/helpers
Functions
isEncrypted
▸ isEncrypted(item
): item is Object
Determines whether or not an object is an encrypted JWE
Parameters
Name | Type |
---|---|
item | Record <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
Name | Type |
---|---|
str | string |
Returns
boolean