printj/bits/80_wrapper.js

8 lines
326 B
JavaScript
Raw Normal View History

function vsprintf(fmt/*:string*/, args/*:Args*/)/*:string*/ { return doit(tokenize(fmt), args); }
2016-09-19 06:33:23 +00:00
function sprintf(/*:: ...argz*/)/*:string*/ {
2016-09-19 06:33:23 +00:00
var args/*:Array<any>*/ = new Array(arguments.length - 1);
for(var i/*:number*/ = 0; i < args.length; ++i) args[i] = arguments[i+1];
2016-09-19 06:33:23 +00:00
return doit(tokenize(arguments[0]), args);
}