diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/util.js b/lib/util.js index b2bfa7c5d..7c3e03c24 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1,6 +1,6 @@ 'use strict'; -var formatRegExp = /%[sdj%]/g; +const formatRegExp = /%[sdj%]/g; exports.format = function(f) { if (!isString(f)) { var objects = []; @@ -495,7 +495,7 @@ function reduceToSingleString(output, base, braces) { // NOTE: These type checking functions intentionally don't use `instanceof` // because it is fragile and can be easily faked with `Object.create()`. -var isArray = exports.isArray = Array.isArray; +const isArray = exports.isArray = Array.isArray; function isBoolean(arg) { return typeof arg === 'boolean'; @@ -583,8 +583,8 @@ function pad(n) { } -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', - 'Oct', 'Nov', 'Dec']; +const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', + 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34 function timestamp() { |