UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

11 lines (10 loc) 331 B
import { isObject as u, upperFirst as n } from "../../../utils/tools.js"; const s = (l, t = !0) => l.map((e) => { if (u(e)) return { value: e.value, label: e.label }; const r = e, a = t ? n(String(r)) : String(r); return { value: r, label: a }; }); export { s as toLabeledValues }; //# sourceMappingURL=LabeledValue.js.map