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

Function toPropsObj

packages/core/src/node.ts:2377–2386  ·  view source on GitHub ↗
(
  props: FormKitPseudoProps
)

Source from the content-addressed store, hash-verified

2375}
2376
2377function toPropsObj(
2378 props: FormKitPseudoProps
2379): Record<PropertyKey, FormKitPseudoProp> {
2380 return !Array.isArray(props)
2381 ? props
2382 : props.reduce((props, prop) => {
2383 props[prop] = {}
2384 return props
2385 }, {} as Record<PropertyKey, FormKitPseudoProp>)
2386}
2387
2388function mergeProps(
2389 props: FormKitPseudoProps,

Callers 2

mergePropsFunction · 0.85
setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected