mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
chore: eslint prefer-rest-params, prefer-spread
This commit is contained in:
committed by
Julian Lam
parent
23f212a4c0
commit
115d19e289
@@ -6,8 +6,7 @@ helpers.valueToString = function (value) {
|
||||
return String(value);
|
||||
};
|
||||
|
||||
helpers.removeDuplicateValues = function (values) {
|
||||
const others = Array.prototype.slice.call(arguments, 1);
|
||||
helpers.removeDuplicateValues = function (values, ...others) {
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
if (values.lastIndexOf(values[i]) !== i) {
|
||||
values.splice(i, 1);
|
||||
|
||||
Reference in New Issue
Block a user