summaryrefslogtreecommitdiffstats
path: root/client/config/blazeHelpers.js
diff options
context:
space:
mode:
authorIvan Radeljic <radeljicivan85@gmail.com>2017-03-16 08:06:41 +0100
committerIvan Radeljic <radeljicivan85@gmail.com>2017-03-16 08:06:41 +0100
commit402a2b8f938f502638a3d0ea0a82ec9640664c0e (patch)
tree1c090245c2f639c20c299081188840134992baf5 /client/config/blazeHelpers.js
parent7130bfa98a00c557b56766dd9dfd6f341d645beb (diff)
downloadwekan-402a2b8f938f502638a3d0ea0a82ec9640664c0e.tar.gz
wekan-402a2b8f938f502638a3d0ea0a82ec9640664c0e.tar.bz2
wekan-402a2b8f938f502638a3d0ea0a82ec9640664c0e.zip
No need for Array.prototype if using rest operator
Diffstat (limited to 'client/config/blazeHelpers.js')
-rw-r--r--client/config/blazeHelpers.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js
index ef075907..73ee24b6 100644
--- a/client/config/blazeHelpers.js
+++ b/client/config/blazeHelpers.js
@@ -18,6 +18,4 @@ Blaze.registerHelper('currentCard', () => {
Blaze.registerHelper('getUser', (userId) => Users.findOne(userId));
-Blaze.registerHelper('concat', function (...args) {
- return Array.prototype.slice.call(args, 0, -1).join('');
-});
+Blaze.registerHelper('concat', (...args) => args.slice(0, -1).join(''));