More robust argument handler. Now you can define any number of arguments to replace placeholders in the formatted string. Previously this was capped at six.
invariant(false, '%s %s %s ... %s', 'one', 'two', 'three', ... 'n');
// => 'one two three ... n'
Like console.log, if the value for a placeholder is undefined, it won't try to populate the placeholder.
More robust argument handler. Now you can define any number of arguments to replace placeholders in the formatted string. Previously this was capped at six.
Like
console.log
, if the value for a placeholder is undefined, it won't try to populate the placeholder.Now:
Previously: