What you are looking for is Function.prototype.apply. It allows you to call a function with an array, which is filled in as the arguments. In this case
console.log.apply(console, ['to console: %d', value]);
will be equivalent to
console.log('to console: %d', value);