List Map Set Record and a lazy Seq — highly efficient, with zero dependencies and TypeScript types in the box.
const upperFirst = (str) =>
str.charAt(0).toUpperCase() + str.slice(1);
List(['apple', 'banana', 'coconut'])
.push('dragonfruit')
.map((fruit) => upperFirst(fruit));
// → List [ "Apple", "Banana", "Coconut", "Dragonfruit" ]Edit the code and press Run. No install, no setup — the same interactive editor appears throughout the docs so you can learn by trying.
Open the full Playground →