Skip to content

Commit 84df0e6

Browse files
authored
Delete redundant Array.from() call
Since Object.values(obj) returns an array it's an overkill to make additional Array.from() call on it.
1 parent e62dfd5 commit 84df0e6

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/07-map-set-weakmap-weakset/02-filter-anagrams

1 file changed

+1
-1
lines changed

1-js/05-data-types/07-map-set-weakmap-weakset/02-filter-anagrams/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function aclean(arr) {
6868
obj[sorted] = arr[i];
6969
}
7070

71-
return Array.from(Object.values(obj));
71+
return Object.values(obj);
7272
}
7373

7474
let arr = ["nap", "teachers", "cheaters", "PAN", "ear", "era", "hectares"];

0 commit comments

Comments
 (0)