MCPcopy Create free account
hub / github.com/formkit/formkit / cloneAny

Function cloneAny

packages/utils/src/index.ts:702–706  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

700 * @public
701 */
702export function cloneAny<T>(obj: T): T {
703 return typeof obj === 'object'
704 ? (clone(obj as Record<string, unknown>) as T)
705 : obj
706}
707
708/**
709 * Get a specific value via dot notation.

Callers 12

reactBindingsFunction · 0.90
useInputFunction · 0.90
createInputFunction · 0.90
addPropsFunction · 0.90
createPropsFunction · 0.90
initialFunction · 0.90
resetFunction · 0.90
createValidationPluginFunction · 0.90
rebootFunction · 0.90
vueBindingsFunction · 0.90
useInputFunction · 0.90
createInputFunction · 0.90

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected