Variables
Const plural
plural: { (str: string, numOfItems: number): string; (str: string): (numOfItems: number) => string } = curry(__plural) as {(str: string, numOfItems: number): string(str: string): (numOfItems: number) => string}
Type declaration
-
- (str: string, numOfItems: number): string
- (str: string): (numOfItems: number) => string
-
Parameters
-
str: string
-
numOfItems: number
Returns string
-
Parameters
Returns (numOfItems: number) => string
-
- (numOfItems: number): string
-
Parameters
Returns string
Const repeat
repeat: Curry2<number, string, string> = curry((n: number, str: string) =>str.repeat(n),)
Const split
split: { (separator: string | RegExp, str: string): string[]; (separator: string | RegExp): (str: string) => string[] } = curry(__split)
Type declaration
-
- (separator: string | RegExp, str: string): string[]
- (separator: string | RegExp): (str: string) => string[]
-
Parameters
-
separator: string | RegExp
-
str: string
Returns string[]
-
Parameters
-
separator: string | RegExp
Returns (str: string) => string[]
-
-
Parameters
Returns string[]
Const substr
substr: { (from: number, length: number | undefined, str: string): string; (from: number, length: number | undefined): (str: string) => string } = curry(__substr)
Type declaration
-
- (from: number, length: number | undefined, str: string): string
- (from: number, length: number | undefined): (str: string) => string
-
Parameters
-
from: number
-
length: number | undefined
-
str: string
Returns string
-
Parameters
-
from: number
-
length: number | undefined
Returns (str: string) => string
-
-
Parameters
Returns string
Const substring
substring: { (from: number, to: number | undefined, str: string): string; (from: number, to: number | undefined): (str: string) => string } = curry(__substring)
Type declaration
-
- (from: number, to: number | undefined, str: string): string
- (from: number, to: number | undefined): (str: string) => string
-
Parameters
-
from: number
-
to: number | undefined
-
str: string
Returns string
-
Parameters
-
from: number
-
to: number | undefined
Returns (str: string) => string
-
-
Parameters
Returns string
@typed/strings