Skip to content

Add intersperse function and Join component#25

Merged
sindresorhus merged 4 commits intomainfrom
intersperse
Sep 9, 2025
Merged

Add intersperse function and Join component#25
sindresorhus merged 4 commits intomainfrom
intersperse

Conversation

@sindresorhus
Copy link
Copy Markdown
Owner

Fixes #24

@sindresorhus
Copy link
Copy Markdown
Owner Author

// @Richienb

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment thread index.d.ts
Comment thread source/intersperse.js Outdated
Comment thread source/intersperse.js
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
Comment thread index.d.ts Outdated
Co-authored-by: Richie Bendall <richiebendall@gmail.com>
Comment thread index.d.ts
```
*/
export function intersperse(
children: ReactNode,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait, shouldn't this be array?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

Copy link
Copy Markdown
Contributor

@Richienb Richienb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get some type tests?

@sindresorhus sindresorhus merged commit 4664d25 into main Sep 9, 2025
4 checks passed
@sindresorhus sindresorhus deleted the intersperse branch September 9, 2025 18:52
Repository owner deleted a comment Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding delimiter between elements

2 participants