first commit
This commit is contained in:
14
app_vue/node_modules/utila/lib/string.js
generated
vendored
Normal file
14
app_vue/node_modules/utila/lib/string.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
// Generated by CoffeeScript 1.6.3
|
||||
module.exports = {
|
||||
pad: function(n, width, z) {
|
||||
if (z == null) {
|
||||
z = '0';
|
||||
}
|
||||
n = n + '';
|
||||
if (n.length >= width) {
|
||||
return n;
|
||||
} else {
|
||||
return new Array(width - n.length + 1).join(z) + n;
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user