UNPKG

@web3r/flowerkit

Version:

Tree-shakable JavaScript and TypeScript utility library for frontend/browser apps: DOM, events, arrays, objects, strings, date, JSON, and network helpers (ESM/CJS, SSR-friendly).

17 lines (16 loc) 590 B
export type TIsStrInCamelCaseArgs = Parameters<typeof isStrInCamelCase>; export type TIsStrInCamelCaseReturn = ReturnType<typeof isStrInCamelCase>; /** * Checks if a string is in camelCase. * Rules: * Starts with lowercase letters * Contains one or more capitalized segments (e.g., "abcDef") * * @param {string} str Source string * @returns {boolean} True if string is camelCase * @throws {TypeError} If str is not a string * @example * isStrInCamelCase("abcDef"); // true * isStrInCamelCase("Word"); // false */ export declare const isStrInCamelCase: (str: string) => boolean;