@bearz/strings
Version:
A collection of string utilities to avoid extra allocations and enable case insensitivity comparisons.
20 lines (19 loc) • 590 B
JavaScript
/**
* The camelize module includes the camelize function for strings
* which converts a string to camel case. It is primarily used for
* converting code to camel case.
*
* @module
*/
import { camelize as og } from "@bearz/slices/camelize";
/**
* Converts the string to camel case. This is primarily for converting
* code to camel case.
* @param value The string to camelize.
* @param options The options for the function.
* @returns A string in camel case.
*/
export function camelize(value, options) {
const r = og(value, options);
return String.fromCodePoint(...r);
}