From 5c6434d4cef8bd1bf3ad2c77f379a8b174939ab9 Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Mon, 21 Aug 2023 19:31:27 +0530 Subject: Add intersperse() method for arrays (#1897) --- docs/reference/types.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/reference') 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. -- cgit v1.2.3