Skip to content

createVars #11

@jantimon

Description

@jantimon

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions