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:
parent
e62dfd5254
commit
84df0e6f5e
1 changed files with 1 additions and 1 deletions
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue