string
String utils for common string manipulation.
Examples are capitalize and splitCamelCase…
Functions
camlelcaseize()
Transforms a string into CamelCase.
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:64
capitalize()
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:19
capitalizeWords()
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:23
getSharedString()
Parameters
• strings: string
[] | string
[][]
• options = {}
• options.camelcase?: boolean
• options.pluralize?: boolean
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:198
getVarsFromFormatString()
Parameters
• formatString: string
Returns
string
[]
Defined in
tmp/commons/src/lib/utils/string.ts:213
initials()
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:46
isAlphaNumChar()
Parameters
• str: string
Returns
boolean
Defined in
tmp/commons/src/lib/utils/string.ts:27
isPlural()
Test if provided word is plural.
Parameters
• word: string
Returns
boolean
Defined in
tmp/commons/src/lib/utils/string.ts:16
isSingular()
Test if provided word is singular.
Parameters
• word: string
Returns
boolean
Defined in
tmp/commons/src/lib/utils/string.ts:16
matchingParts()
Parameters
• s: string
• ref: string
• options = {}
• options.caseInsensitive?: boolean
Returns
object
[]
Defined in
tmp/commons/src/lib/utils/string.ts:218
plural()
Pluralize a word based.
Parameters
• word: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:16
pluralize()
Pluralize or singularize a word based on the passed in count.
Parameters
• word: string
• count?: number
• inclusive?: boolean
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:15
singular()
Singularize a word based.
Parameters
• word: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:16
splitCamelCase()
Splits a camel case string into an array of words.
Parameters
• str: string
Camel case string to split.
Returns
string
[]
Array of words.
Defined in
tmp/commons/src/lib/utils/string.ts:111
titlelize()
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:37
unCamelCase()
Transforms a Camelcase string into a normal space seperated string.
Parameters
• str: string
Returns
string
Defined in
tmp/commons/src/lib/utils/string.ts:81
words()
Parameters
• str: string
Returns
string