flat() function
-
Returns flattened Iterable/AsyncIterable. If first argument is number, more perform flatten flat(2, [[[1,2]]]) // [1,2]
+
Returns flattened Iterable/AsyncIterable. If first argument is number, more perform flatten flat([[[1,2]]], 2) // [1,2]
Signature:
declare function flat<A extends Iterable<unknown> | AsyncIterable<unknown>, B extends number = 1>(iterator: A, depth?: B): ReturnFlatType<A, B>;
Example
diff --git a/docs/flatMap/index.html b/docs/flatMap/index.html
index 9909e24c..6e7de299 100644
--- a/docs/flatMap/index.html
+++ b/docs/flatMap/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/fromEntries/index.html b/docs/fromEntries/index.html
index 9dfab517..b3cb3e69 100644
--- a/docs/fromEntries/index.html
+++ b/docs/fromEntries/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/function-composition/index.html b/docs/function-composition/index.html
index 27b4e60a..f107f935 100644
--- a/docs/function-composition/index.html
+++ b/docs/function-composition/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/fx/index.html b/docs/fx/index.html
index fcf6e58b..9f3bb1e1 100644
--- a/docs/fx/index.html
+++ b/docs/fx/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/getting-started/index.html b/docs/getting-started/index.html
index 4ea6eaab..fb9455fc 100644
--- a/docs/getting-started/index.html
+++ b/docs/getting-started/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/groupBy/index.html b/docs/groupBy/index.html
index 185f3efa..55b390ca 100644
--- a/docs/groupBy/index.html
+++ b/docs/groupBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/gt/index.html b/docs/gt/index.html
index 9f0f51a3..a8a733e2 100644
--- a/docs/gt/index.html
+++ b/docs/gt/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/gte/index.html b/docs/gte/index.html
index b4255e75..a911235d 100644
--- a/docs/gte/index.html
+++ b/docs/gte/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/handle-concurrency/index.html b/docs/handle-concurrency/index.html
index 4925ec33..9d92622c 100644
--- a/docs/handle-concurrency/index.html
+++ b/docs/handle-concurrency/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/head/index.html b/docs/head/index.html
index 9d8eb6f2..a2674526 100644
--- a/docs/head/index.html
+++ b/docs/head/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/how-to-debug/index.html b/docs/how-to-debug/index.html
index 2d88380a..2a60e159 100644
--- a/docs/how-to-debug/index.html
+++ b/docs/how-to-debug/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/identity/index.html b/docs/identity/index.html
index 37371453..7987f38b 100644
--- a/docs/identity/index.html
+++ b/docs/identity/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/includes/index.html b/docs/includes/index.html
index af63b0e6..9a7877b4 100644
--- a/docs/includes/index.html
+++ b/docs/includes/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/index.html b/docs/index.html
index 8b61a40c..4b2de5cb 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/indexBy/index.html b/docs/indexBy/index.html
index e2c2dc69..5078147e 100644
--- a/docs/indexBy/index.html
+++ b/docs/indexBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/intersection/index.html b/docs/intersection/index.html
index a5a5e513..5c5529f1 100644
--- a/docs/intersection/index.html
+++ b/docs/intersection/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/intersectionBy/index.html b/docs/intersectionBy/index.html
index b2086b87..6e972ec4 100644
--- a/docs/intersectionBy/index.html
+++ b/docs/intersectionBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isArray/index.html b/docs/isArray/index.html
index 44691bbe..7501e941 100644
--- a/docs/isArray/index.html
+++ b/docs/isArray/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isBoolean/index.html b/docs/isBoolean/index.html
index 914a4ef9..a4f29bea 100644
--- a/docs/isBoolean/index.html
+++ b/docs/isBoolean/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isEmpty/index.html b/docs/isEmpty/index.html
index d94226b3..028615be 100644
--- a/docs/isEmpty/index.html
+++ b/docs/isEmpty/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isNil/index.html b/docs/isNil/index.html
index ff3e382d..66fb424b 100644
--- a/docs/isNil/index.html
+++ b/docs/isNil/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isNull/index.html b/docs/isNull/index.html
index 554ed44b..01166cb5 100644
--- a/docs/isNull/index.html
+++ b/docs/isNull/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isNumber/index.html b/docs/isNumber/index.html
index 2b3b314d..d8fa2a61 100644
--- a/docs/isNumber/index.html
+++ b/docs/isNumber/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isObject/index.html b/docs/isObject/index.html
index ffd9ebbd..5c571445 100644
--- a/docs/isObject/index.html
+++ b/docs/isObject/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isString/index.html b/docs/isString/index.html
index e2061add..fecfda6b 100644
--- a/docs/isString/index.html
+++ b/docs/isString/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/isUndefined/index.html b/docs/isUndefined/index.html
index 23acd570..202e7848 100644
--- a/docs/isUndefined/index.html
+++ b/docs/isUndefined/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/join/index.html b/docs/join/index.html
index 2df58ffe..97898e14 100644
--- a/docs/join/index.html
+++ b/docs/join/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/juxt/index.html b/docs/juxt/index.html
index 3dab306c..d7def497 100644
--- a/docs/juxt/index.html
+++ b/docs/juxt/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/keys/index.html b/docs/keys/index.html
index bca6ed47..3a1bb9b5 100644
--- a/docs/keys/index.html
+++ b/docs/keys/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/last/index.html b/docs/last/index.html
index d7683318..7b9a1e36 100644
--- a/docs/last/index.html
+++ b/docs/last/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/lazy-evaluation/index.html b/docs/lazy-evaluation/index.html
index 7de7ca13..043ab855 100644
--- a/docs/lazy-evaluation/index.html
+++ b/docs/lazy-evaluation/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/lt/index.html b/docs/lt/index.html
index 10913159..b575bcdb 100644
--- a/docs/lt/index.html
+++ b/docs/lt/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/lte/index.html b/docs/lte/index.html
index 5b3a7bfd..19660787 100644
--- a/docs/lte/index.html
+++ b/docs/lte/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/map/index.html b/docs/map/index.html
index 34eaa5bc..eef07260 100644
--- a/docs/map/index.html
+++ b/docs/map/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/max/index.html b/docs/max/index.html
index 68eedff8..a312a23e 100644
--- a/docs/max/index.html
+++ b/docs/max/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/memoize/index.html b/docs/memoize/index.html
index e1b01d47..6ba6a999 100644
--- a/docs/memoize/index.html
+++ b/docs/memoize/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/method-chaining/index.html b/docs/method-chaining/index.html
index e1bf7ccd..cdcf1a06 100644
--- a/docs/method-chaining/index.html
+++ b/docs/method-chaining/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/min/index.html b/docs/min/index.html
index edd86fd0..e106fe53 100644
--- a/docs/min/index.html
+++ b/docs/min/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/negate/index.html b/docs/negate/index.html
index 6efc0429..eb435c20 100644
--- a/docs/negate/index.html
+++ b/docs/negate/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/noop/index.html b/docs/noop/index.html
index afda24ff..1b5fae2d 100644
--- a/docs/noop/index.html
+++ b/docs/noop/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/not/index.html b/docs/not/index.html
index e3a0a7d6..79421a9d 100644
--- a/docs/not/index.html
+++ b/docs/not/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/nth/index.html b/docs/nth/index.html
index a9274057..47da15dc 100644
--- a/docs/nth/index.html
+++ b/docs/nth/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/omit/index.html b/docs/omit/index.html
index c0bcffc3..3a9d9fb8 100644
--- a/docs/omit/index.html
+++ b/docs/omit/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/omitBy/index.html b/docs/omitBy/index.html
index d9d5607b..e1d327bc 100644
--- a/docs/omitBy/index.html
+++ b/docs/omitBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/partition/index.html b/docs/partition/index.html
index 78806bdd..127b3d7c 100644
--- a/docs/partition/index.html
+++ b/docs/partition/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/peek/index.html b/docs/peek/index.html
index 79e066b2..487ffb95 100644
--- a/docs/peek/index.html
+++ b/docs/peek/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/pick/index.html b/docs/pick/index.html
index 94fce231..0567a7d7 100644
--- a/docs/pick/index.html
+++ b/docs/pick/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/pickBy/index.html b/docs/pickBy/index.html
index 56d90e6c..6c07d919 100644
--- a/docs/pickBy/index.html
+++ b/docs/pickBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/pipe/index.html b/docs/pipe/index.html
index eeaf9ba9..c6dcb529 100644
--- a/docs/pipe/index.html
+++ b/docs/pipe/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/pipeLazy/index.html b/docs/pipeLazy/index.html
index 0076d31e..a9df2093 100644
--- a/docs/pipeLazy/index.html
+++ b/docs/pipeLazy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/pluck/index.html b/docs/pluck/index.html
index db51aee9..5ec8b737 100644
--- a/docs/pluck/index.html
+++ b/docs/pluck/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/prepend/index.html b/docs/prepend/index.html
index 57a97d53..7e701c63 100644
--- a/docs/prepend/index.html
+++ b/docs/prepend/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/prop/index.html b/docs/prop/index.html
index c859cb41..f5f8dad7 100644
--- a/docs/prop/index.html
+++ b/docs/prop/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/props/index.html b/docs/props/index.html
index 6c35b81c..d2c13e5b 100644
--- a/docs/props/index.html
+++ b/docs/props/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/range/index.html b/docs/range/index.html
index c8fee217..d5e44b1b 100644
--- a/docs/range/index.html
+++ b/docs/range/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/reduce/index.html b/docs/reduce/index.html
index 0ce89286..8684bd9f 100644
--- a/docs/reduce/index.html
+++ b/docs/reduce/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/reduceLazy/index.html b/docs/reduceLazy/index.html
index ec46a170..55a4236b 100644
--- a/docs/reduceLazy/index.html
+++ b/docs/reduceLazy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/reject/index.html b/docs/reject/index.html
index 6e809b7a..4342c787 100644
--- a/docs/reject/index.html
+++ b/docs/reject/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/repeat/index.html b/docs/repeat/index.html
index b11bb8c3..6c9ebc72 100644
--- a/docs/repeat/index.html
+++ b/docs/repeat/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/reverse/index.html b/docs/reverse/index.html
index b3a85084..7a3c2e78 100644
--- a/docs/reverse/index.html
+++ b/docs/reverse/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/scan/index.html b/docs/scan/index.html
index 01cd7642..6175101c 100644
--- a/docs/scan/index.html
+++ b/docs/scan/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/size/index.html b/docs/size/index.html
index 466a35b3..4f964f37 100644
--- a/docs/size/index.html
+++ b/docs/size/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/slice/index.html b/docs/slice/index.html
index 9fb5e7db..08b45300 100644
--- a/docs/slice/index.html
+++ b/docs/slice/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/some/index.html b/docs/some/index.html
index a3d71371..848fda25 100644
--- a/docs/some/index.html
+++ b/docs/some/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/sort/index.html b/docs/sort/index.html
index 3557350f..91e4c94f 100644
--- a/docs/sort/index.html
+++ b/docs/sort/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/sortBy/index.html b/docs/sortBy/index.html
index 81585fb7..dfbfa680 100644
--- a/docs/sortBy/index.html
+++ b/docs/sortBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/split/index.html b/docs/split/index.html
index 637f495f..b298ba45 100644
--- a/docs/split/index.html
+++ b/docs/split/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/sum/index.html b/docs/sum/index.html
index 4a4a16ed..fb91c5a1 100644
--- a/docs/sum/index.html
+++ b/docs/sum/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/take/index.html b/docs/take/index.html
index e677dc33..9a290d57 100644
--- a/docs/take/index.html
+++ b/docs/take/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/takeRight/index.html b/docs/takeRight/index.html
index b8f849ca..3b9b7c79 100644
--- a/docs/takeRight/index.html
+++ b/docs/takeRight/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/takeUntil/index.html b/docs/takeUntil/index.html
index e4996534..a500894d 100644
--- a/docs/takeUntil/index.html
+++ b/docs/takeUntil/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/takeWhile/index.html b/docs/takeWhile/index.html
index 239bf98d..74db7334 100644
--- a/docs/takeWhile/index.html
+++ b/docs/takeWhile/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/tap/index.html b/docs/tap/index.html
index 5bf5e39b..097e2a37 100644
--- a/docs/tap/index.html
+++ b/docs/tap/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/throwError/index.html b/docs/throwError/index.html
index 5dded4f9..bb685b53 100644
--- a/docs/throwError/index.html
+++ b/docs/throwError/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/throwIf/index.html b/docs/throwIf/index.html
index 39ba9a90..75452da1 100644
--- a/docs/throwIf/index.html
+++ b/docs/throwIf/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/to-async/index.html b/docs/to-async/index.html
index a45a0f78..ef8442ce 100644
--- a/docs/to-async/index.html
+++ b/docs/to-async/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/toArray/index.html b/docs/toArray/index.html
index fcde3064..762ded52 100644
--- a/docs/toArray/index.html
+++ b/docs/toArray/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/toAsync/index.html b/docs/toAsync/index.html
index 3980c660..4a38c3cb 100644
--- a/docs/toAsync/index.html
+++ b/docs/toAsync/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/unicodeToArray/index.html b/docs/unicodeToArray/index.html
index 34904cc1..b8f9575f 100644
--- a/docs/unicodeToArray/index.html
+++ b/docs/unicodeToArray/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/uniq/index.html b/docs/uniq/index.html
index e4a63e2b..c25026e0 100644
--- a/docs/uniq/index.html
+++ b/docs/uniq/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/uniqBy/index.html b/docs/uniqBy/index.html
index 148fbd11..c04a67f9 100644
--- a/docs/uniqBy/index.html
+++ b/docs/uniqBy/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/unless/index.html b/docs/unless/index.html
index a612b8de..9fd8e7dd 100644
--- a/docs/unless/index.html
+++ b/docs/unless/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/values/index.html b/docs/values/index.html
index ffb41a71..e2b3b384 100644
--- a/docs/values/index.html
+++ b/docs/values/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/zip/index.html b/docs/zip/index.html
index 591b4e36..49de626c 100644
--- a/docs/zip/index.html
+++ b/docs/zip/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/zipWith/index.html b/docs/zipWith/index.html
index a5483051..5fca6717 100644
--- a/docs/zipWith/index.html
+++ b/docs/zipWith/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/docs/zipWithIndex/index.html b/docs/zipWithIndex/index.html
index 35c85c0b..17075435 100644
--- a/docs/zipWithIndex/index.html
+++ b/docs/zipWithIndex/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/index.html b/index.html
index 31487afb..3fad6d0b 100644
--- a/index.html
+++ b/index.html
@@ -12,7 +12,7 @@
-
+
diff --git a/search/index.html b/search/index.html
index 402452f4..1bce3f98 100644
--- a/search/index.html
+++ b/search/index.html
@@ -12,7 +12,7 @@
-
+