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

11 lines
220 B
TypeScript
Raw Normal View History

interface String {
trimLines(): string;
2019-10-29 12:36:03 +01:00
replaceAll(regex: RegExp, replacement: string): string;
}
2019-10-29 12:36:03 +01:00
interface Array<T> {
2019-10-29 12:36:03 +01:00
sortAlphabetically(transform: (element: T) => string, caseSensitive: boolean): T[];
}