nhb-toolbox
Version:
A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.
37 lines • 1.36 kB
TypeScript
/**
* * Checks if a string is a palindrome.
* @param input - The string to check.
* @returns True if the string is a palindrome, otherwise false.
*/
export declare const isPalindrome: (input: string) => boolean;
/**
* * Checks if a string is in camelCase format.
* @param str The string to check.
* @returns `true` if the string is in camelCase, otherwise `false`.
*/
export declare function isCamelCase(str: string): boolean;
/**
* * Checks if a string is in PascalCase format.
* @param str The string to check.
* @returns `true` if the string is in PascalCase, otherwise `false`.
*/
export declare function isPascalCase(str: string): boolean;
/**
* * Checks if a string is in snake_case format.
* @param str The string to check.
* @returns `true` if the string is in snake_case, otherwise `false`.
*/
export declare function isSnakeCase(str: string): boolean;
/**
* * Checks if a string is in kebab-case format.
* @param str The string to check.
* @returns `true` if the string is in kebab-case, otherwise `false`.
*/
export declare function isKebabCase(str: string): boolean;
/**
* * Checks if a string contains only emojis.
* @param str The string to check.
* @returns `true` if the string contains only emojis, otherwise `false`.
*/
export declare function isEmojiOnly(str: string): boolean;
//# sourceMappingURL=guards.d.ts.map