forked from rvagg/bole
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat.js
More file actions
40 lines (36 loc) · 1.47 KB
/
format.js
File metadata and controls
40 lines (36 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// consider this a warning about getting obsessive about optimization
var utilformat = require('util').format
function format (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {
if (a16 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16)
if (a15 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15)
if (a14 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14)
if (a13 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13)
if (a12 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12)
if (a11 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11)
if (a10 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
if (a9 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8, a9)
if (a8 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7, a8)
if (a7 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6, a7)
if (a6 !== undefined)
return utilformat(a1, a2, a3, a4, a5, a6)
if (a5 !== undefined)
return utilformat(a1, a2, a3, a4, a5)
if (a4 !== undefined)
return utilformat(a1, a2, a3, a4)
if (a3 !== undefined)
return utilformat(a1, a2, a3)
if (a2 !== undefined)
return utilformat(a1, a2)
return a1
}
module.exports = format