UNPKG
phpjs
Version:
latest (1.3.2)
1.3.2
1.2.2
1.1.2
1.0.2
1.0.1
1.0.0
0.0.1
php.js offers community built php functions in javascript
phpjs.org
kvz/phpjs
phpjs
/
functions
/
strings
/
vsprintf.js
9 lines
(8 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
function
vsprintf
(
format,
args
)
{
// From: http://phpjs.org/functions
// + original by: ejsanders
// - depends on: sprintf
// * example 1: vsprintf('%04d-%02d-%02d', [1988, 8, 1]);
// * returns 1: '1988-08-01'
return
this
.sprintf.apply(
this
, [format].concat(
args
)); }