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

Function dict2Options

src/Data/Schemas.js:25–32  ·  view source on GitHub ↗
(dict)

Source from the content-addressed store, hash-verified

23}
24
25export function dict2Options(dict) {
26 return Object.entries(dict).map(([key, value]) => {
27 return {
28 value: key,
29 label: value
30 }
31 })
32}
33
34export const majorList = ['CS', 'EE', 'IE', 'BME', 'SCA', 'BioSci', 'BioTech'];
35export const majorOptions = list2Options(majorList);

Callers 1

Schemas.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected