Skip to content

Is there a specific reason to not allow invariant(cond, message, ...args) ? #42

@Sceat

Description

@Sceat

invariant is using a defined number of arguments (a,b,c,d,e,f)
imo it should be

invariant(cond, message, ...args) {
	const parsed = message.replace('%s', () => args.shift() || '')
}

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