Skip to content

axStringUtil

Variable: axStringUtil

const axStringUtil: object

Type declaration

batchArray()

batchArray: <T>(arr, size) => T[][]

Type Parameters

T

Parameters

arr: readonly T[]

size: number

Returns

T[][]

dedup()

dedup: (seq) => string[]

Parameters

seq: readonly string[]

Returns

string[]

extractIdAndText()

extractIdAndText: (input) => object

Parameters

input: string

Returns

object

id

id: number

text

text: string

extractIndexPrefixedText()

extractIndexPrefixedText: (input) => string

Parameters

input: string

Returns

string

splitIntoTwo()

splitIntoTwo: (str, separator) => string[]

Parameters

str: string

separator: Readonly<string | RegExp>

Returns

string[]

trimNonAlphaNum()

trimNonAlphaNum: (str) => string

Parameters

str: string

Returns

string

Defined in

src/ax/dsp/strutil.ts:66