forked from tools/josh
1
0
Fork 0
josh/src/main/js/extensions.d.ts

11 lines
220 B
TypeScript

interface String {
trimLines(): string;
replaceAll(regex: RegExp, replacement: string): string;
}
interface Array<T> {
sortAlphabetically(transform: (element: T) => string, caseSensitive: boolean): T[];
}