summaryrefslogtreecommitdiff
path: root/docs/reference
diff options
context:
space:
mode:
authorGokul Soumya <gokulps15@gmail.com>2023-08-21 19:31:27 +0530
committerGitHub <noreply@github.com>2023-08-21 16:01:27 +0200
commit5c6434d4cef8bd1bf3ad2c77f379a8b174939ab9 (patch)
tree7b3070f2368440a6e11920e6f00b6aa458654524 /docs/reference
parent487fddb7cb614c649c7e0fbd61cefbd6f263fd65 (diff)
Add intersperse() method for arrays (#1897)
Diffstat (limited to 'docs/reference')
-rw-r--r--docs/reference/types.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/reference/types.md b/docs/reference/types.md
index 3979a454..b0ee1bd1 100644
--- a/docs/reference/types.md
+++ b/docs/reference/types.md
@@ -1029,6 +1029,12 @@ Combine all items in the array into one.
An alternative separator between the last two items
- returns: any
+### intersperse()
+Returns a new array with a separator placed between adjacent items.
+
+- separator: any (positional)
+ The value to insert between each item of the array.
+
### sorted()
Return a new array with the same items, but sorted.