Text Helper
Methods
base64Encode()
base64Encode(
str
):null
|string
Parameters
• str: undefined
| null
| string
Returns
null
| string
dateFromUtcDateTimeReferenceString()
dateFromUtcDateTimeReferenceString(
referenceStr
):Date
Parameters
• referenceStr: string
Returns
Date
dateToUtcDateTimeReferenceString()
dateToUtcDateTimeReferenceString(
forDateTime
):string
Parameters
• forDateTime: Date
Returns
string
dateToYYYYMMDD()
dateToYYYYMMDD(
date
):string
Parameters
• date: Date
Returns
string
getEarliestAssignedBrowserIdentifier()
getEarliestAssignedBrowserIdentifier(
ids
):string
Parameters
• ids: string
[]
Returns
string
getNewBrowserIdentifier()
getNewBrowserIdentifier(
forDate
?):string
Parameters
• forDate?: Date
Returns
string
getRandomNumberString()
getRandomNumberString():
string
Returns
string
isEmpty()
isEmpty(
value
):boolean
Parameters
• value: unknown
Returns
boolean
isFirstCharacterAlpha()
isFirstCharacterAlpha(
str
):boolean
Parameters
• str: string
Returns
boolean
sentenceCaseToSnakeCase()
sentenceCaseToSnakeCase(
str
):string
Parameters
• str: string
Returns
string
separatePersonFullName()
separatePersonFullName(
fullname
):object
Parameters
• fullname: string
Returns
object
firstName
firstName:
null
|string
lastName
lastName:
null
|string
trimLeadingAndTrailingChars()
trimLeadingAndTrailingChars(
str
,char
):string
Parameters
• str: string
• char: string
Returns
string