Published
Edited
Feb 18, 2022
1 fork
1 star
Insert cell
# Newlines to commas

Paste in a bunch of lines of text, get back those lines separated by commas instead of newlines.
Insert cell
viewof text = Inputs.textarea()
Insert cell
html`<code>${text.split("\n").join(", ")}</code>`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more