summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/vsprintf.js
blob: a44af5ee13e149175b504baaea746d01cbd80ea5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';

module.exports = function vsprintf(format, args) {
  //  discuss at: http://locutus.io/php/vsprintf/
  // original by: ejsanders
  //   example 1: vsprintf('%04d-%02d-%02d', [1988, 8, 1])
  //   returns 1: '1988-08-01'

  var sprintf = require('../strings/sprintf');

  return sprintf.apply(this, [format].concat(args));
};
//# sourceMappingURL=vsprintf.js.map