Skip to content

Commit efbb1f4

Browse files
Update solution.hide.js
1 parent 6927a96 commit efbb1f4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

exercises/107-getLengthOfLongestElement/solution.hide.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
function getLengthOfLongestElement(arr) {
22
// your code here
3-
if (arr.length === 0) {
4-
return 0;
5-
}
6-
73
let longestLength = 0;
84
for (let i = 0; i < arr.length; i++) {
95
if (arr[i].length > longestLength) {

0 commit comments

Comments
 (0)