3 ms·
var message = util.format('oh hai %s!', name); I thought it was a javascript quality guide ? there is no util.format in ES5 spec.
by aikah 12y ago
var message = util.format('oh hai %s!', name);
I thought it was a javascript quality guide ? there is no util.format in ES5 spec.
- bevacqua 12y agoIt's a Node.js example
- iaskwhy 12y ago"Usually you'll be a happier JavaScript developer if you hack together a parameter-replacing method like util.format in Node." + "You could implement something similar using the piece of code below." I don't think you can ask more than this, everything is clearly laid out...