chore: eslint prefer-rest-params, prefer-spread

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:52:25 -07:00
committed by Julian Lam
parent 23f212a4c0
commit 115d19e289
14 changed files with 24 additions and 31 deletions

View File

@@ -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);