Delete redundant Array.from() call

Since Object.values(obj) returns an array it's an overkill to make additional Array.from() call on it.
This commit is contained in:
daGo 2018-12-27 23:09:30 +03:00 committed by GitHub
parent e62dfd5254
commit 84df0e6f5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ function aclean(arr) {
obj[sorted] = arr[i];
}
return Array.from(Object.values(obj));
return Object.values(obj);
}
let arr = ["nap", "teachers", "cheaters", "PAN", "ear", "era", "hectares"];