MCPcopy Create free account
hub / github.com/IvanAdmaers/react-roulette-pro / getDesignOptions

Function getDesignOptions

example/src/App.js:80–95  ·  view source on GitHub ↗
(settings)

Source from the content-addressed store, hash-verified

78];
79
80const getDesignOptions = (settings) => {
81 const result = {};
82 const keys = Object.keys(settings);
83
84 keys.forEach((key) => {
85 const { forDesign, value } = settings[key];
86
87 if (!forDesign) {
88 return;
89 }
90
91 result[key] = value;
92 });
93
94 return result;
95};
96
97// eslint-disable-next-line valid-typeof
98const isArrayOf = (type, array) => array.every((item) => typeof item === type);

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected