diff --git a/index.html b/index.html index 3c0ce397f..69a6e13be 100644 --- a/index.html +++ b/index.html @@ -656,13 +656,17 @@ _.compact([0, 1, false, 2, '', 3]);

- flatten_.flatten(array) + flatten_.flatten(array, [shallow])
- Flattens a nested array (the nesting can be to any depth). + Flattens a nested array (the nesting can be to any depth). If you + pass shallow, the array will only be flattened a single level.

-_.flatten([1, [2], [3, [[[4]]]]]);
+_.flatten([1, [2], [3, [[4]]]]);
 => [1, 2, 3, 4];
+
+_.flatten([1, [2], [3, [[4]]]], true);
+=> [1, 2, 3, [[4]]];