MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / list2Options

Function list2Options

src/Data/Schemas.js:16–23  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

14`
15
16export function list2Options(list) {
17 return list.map((item) => {
18 return {
19 value: item,
20 label: item
21 }
22 })
23}
24
25export function dict2Options(dict) {
26 return Object.entries(dict).map(([key, value]) => {

Callers 3

BasicInfoFunction · 0.90
AddModifyRecordFunction · 0.90
Schemas.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected