invariant icon indicating copy to clipboard operation
invariant copied to clipboard

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

Open Sceat opened this issue 4 years ago • 1 comments

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() || '')
}

Sceat avatar May 08 '20 12:05 Sceat

actually #33

Sceat avatar May 08 '20 12:05 Sceat