Skip to content

Commit

Permalink
No need for Array.prototype if using rest operator
Browse files Browse the repository at this point in the history
  • Loading branch information
vuxor committed Mar 16, 2017
1 parent 7130bfa commit 402a2b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/config/blazeHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(''));

0 comments on commit 402a2b8

Please sign in to comment.