MCPcopy Create free account
hub / github.com/formschema/native / parseItems

Function parseItems

lib/parser.js:146–154  ·  view source on GitHub ↗
(items)

Source from the content-addressed store, hash-verified

144}
145
146export const parseItems = (items) => {
147 return items.map((item) => {
148 if (typeof item !== 'object') {
149 return { value: item, label: item }
150 }
151
152 return item
153 })
154}
155
156export const parseArray = (vm, schema) => {
157 let field = schema.attrs || {}

Callers 1

parseArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected