Typtern

Type real patterns. Learn as you go.

JS
const nums = [1, 2, 3, 4, 5]; const result = nums   .filter(n => n % 2 === 0)   .map(n => n * 2); console.log(result); // [4, 8]
Daily Snippet
TS
Readonly arrays and tuples
Pick a language
Collections
Leaderboard