mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
No need for Array.prototype if using rest operator
This commit is contained in:
parent
7130bfa98a
commit
402a2b8f93
1 changed files with 1 additions and 3 deletions
|
|
@ -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(''));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue