This commit is contained in:
Philippe Torrel
2026-07-02 13:11:49 +02:00
parent 253411f3c9
commit f0dd230fe9
8 changed files with 91 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
@@ -23,6 +23,8 @@
const findDeepestLevel = (arr, currentLevel = 1) => {};
// Array.isArray()
// Test cases
console.log(findDeepestLevel([1, [2, [3, [4]], 5]])); // => 4
console.log(findDeepestLevel([1, 2, 3, 4, 5])); // => 1