인터랙티브 플레이그라운드에서 es-toolkit 함수를 탐색하고 실험해 보세요. 함수 목록에서 함수를 선택하면 라이브 예제를 볼 수 있고, 직접 코드를 작성할 수도 있어요.
import { chunk, groupBy, uniq } from 'es-toolkit'; // ============================================ // es-toolkit Playground // Try any function from the function list! // ============================================ // chunk(arr, size) // Splits an array into smaller arrays of the given size. const chunked = chunk([1, 2, 3, 4, 5, 6], 2); console.log('chunk:', chunked); // [[1, 2], [3, 4], [5, 6]] // uniq(arr) // Returns a new array with duplicates removed. const unique = uniq([1, 2, 2, 3, 3, 3]); console.log('uniq:', unique); // [1, 2, 3] // groupBy(arr, fn) // Groups array elements by a key returned from the callback. const grouped = groupBy( [ { name: 'Alice', age: 25 }, { name: 'Bob', age: 30 }, { name: 'Charlie', age: 25 }, ], item => item.age, ); console.log('groupBy:', grouped);

