Skip to content

Function: normalizePhone()

ts
function normalizePhone(phone): string;

Defined in: helpers.ts:14

Normalizes a phone number by stripping non-digit characters and converting leading 0 to 233 country code.

Parameters

ParameterType
phonestring

Returns

string