css-variable
css-variable copied to clipboard
createVars
declaring multiple vars at once is quite repetitive right now e.g.:
const a = createVar()
const b = createVar()
const c = createVar()
maybe we could create a new helper createVars which would allow to use the spread operator to declare multiple vars at the same time:
export function* createVars<TValue = string> () { while(1) { yield createVar<TValue>() }}
const [a,b,c] = createVars();