|
|
@@ -89,9 +89,6 @@ const cacheStringFunction = <T extends (str: string) => string>(fn: T): T => {
|
|
|
}
|
|
|
|
|
|
const camelizeRE = /-(\w)/g
|
|
|
-/**
|
|
|
- * @internal
|
|
|
- */
|
|
|
export const camelize = cacheStringFunction(
|
|
|
(str: string): string => {
|
|
|
return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''))
|
|
|
@@ -115,10 +112,7 @@ export const capitalize = cacheStringFunction(
|
|
|
export const hasChanged = (value: any, oldValue: any): boolean =>
|
|
|
value !== oldValue && (value === value || oldValue === oldValue)
|
|
|
|
|
|
-/**
|
|
|
- * For converting {{ interpolation }} values to displayed strings.
|
|
|
- * @internal
|
|
|
- */
|
|
|
+// For converting {{ interpolation }} values to displayed strings.
|
|
|
export const toDisplayString = (val: unknown): string => {
|
|
|
return val == null
|
|
|
? ''
|