diff options
| author | Gokul Soumya <gokulps15@gmail.com> | 2023-08-21 19:31:27 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-21 16:01:27 +0200 |
| commit | 5c6434d4cef8bd1bf3ad2c77f379a8b174939ab9 (patch) | |
| tree | 7b3070f2368440a6e11920e6f00b6aa458654524 /docs | |
| parent | 487fddb7cb614c649c7e0fbd61cefbd6f263fd65 (diff) | |
Add intersperse() method for arrays (#1897)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/reference/types.md | 6 |
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. |
