Skip to main content

Function: isAddress()

function isAddress(value): value is 0x${string}

Checks if the value is an address. If the value is an address, returns true. Otherwise, returns false.

Parameters

ParameterTypeDescription

value

string

The value to check.

Returns

value is 0x${string}

Defined

@nilfoundation/niljs/src/utils/address.ts:20