Platform
Resources
Pricing
Sign in
Contact us
Jed Fox
Workspace
Fork
Published
Tools
By
Jed Fox
Edited
Apr 8, 2022
Fork of
Sort lines of text
Insert cell
Insert cell
Insert cell
{
const
output
=
html
`<textarea readonly rows=10 cols=80 placeholder=Output>`
;
output
.
value
=
input
.
split
(
"\n"
)
.
map
(
(
l
)
=>
(
l
?
l
[
0
]
.
toLowerCase
(
)
+
l
.
slice
(
1
)
:
l
)
)
.
join
(
"\n"
)
;
return
output
;
}
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.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
input
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML