coersystem
Version:
Library for Angular projects
32 lines (31 loc) • 1.23 kB
TypeScript
declare global {
interface String {
/** Sets the first character to lowercase */
firstCharToLower(): string;
/** Sets the first character to uppercase */
firstCharToUpper(): string;
/** Clean extra whitespaces */
cleanUpBlanks(): string;
/** Apply title formatting */
toTitle(): string;
/** Remove whitespaces */
removeWhiteSpaces(): string;
/** Removes the last character */
removeLastChar(): string;
/** Removes accents */
removeAccents(except?: string[]): string;
/** Removes special characters */
removeSpecialCharacters(): string;
/** Only alphaNumeric */
onlyAlphanumeric(): string;
/** Only Numbers */
onlyNumbers(): string;
/** Validates if both strings are equal */
equals(value: string | number | null | undefined, sensitive?: boolean): boolean;
/** Returns true if the value is null or undefined or contains only whitespace, false otherwise */
isOnlyWhiteSpace(): boolean;
/** Returns true if has string value and is not only whitespace, false otherwise */
isNotOnlyWhiteSpace(): boolean;
}
}
export {};