From 77dce7734138d451fecb541b593503fd32f10e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico?= Date: Tue, 7 May 2019 08:29:07 -0500 Subject: [PATCH] simplify string join expression Co-Authored-By: floyd-may --- lib/mixins/vector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/vector.js b/lib/mixins/vector.js index 62046df..df0fcf5 100644 --- a/lib/mixins/vector.js +++ b/lib/mixins/vector.js @@ -72,7 +72,7 @@ export default { if(!valid) { throw new Error(`dash(${JSON.stringify(originalLength)}, ${JSON.stringify(options)}) invalid, lengths must be numeric and greater than zero`); } - length = length.map(v => number(v)).join(' '); + length = length.map(number).join(' '); phase = options.phase || 0; return this.addContent(`[${length}] ${number(phase)} d`); },