UNPKG

@compute.ts/string

Version:

Provide string operators for the computeTS package

19 lines (18 loc) 1.28 kB
export declare function charAt(str: string, index: number): string; export declare function concat(...values: string[]): string; export declare function endsWith(str: string, token: string): boolean; export declare function include(str: string, token: string): boolean; export declare function indexOf(str: string, token: string): number; export declare function is(leftValue: string, rightValue: string): boolean; export declare function isClear(str: string): boolean; export declare function isNot(leftValue: string, rightValue: string): boolean; export declare function length(str: string): number; export declare function padEnd(str: string, fillingChar: string, maxLength: number): string; export declare function padStart(str: string, fillingChar: string, maxLength: number): string; export declare function replace(str: string, search: string, token: string): string; export declare function slice(str: string, start: number, end: number): string; export declare function startsWith(str: string, token: string): boolean; export declare function subString(str: string, from: number, length: number): string; export declare function toLowercase(str: string): string; export declare function toUppercase(str: string): string; export declare function trim(str: string): string;