Core Concepts¶
Learn the fundamental concepts behind @arcaelas/collection.
Collections as Enhanced Arrays¶
Collections extend native JavaScript arrays with powerful methods:
Type Safety¶
Use TypeScript generics for type-safe collections:
Query Language¶
Collections support MongoDB-style queries:
Immutability¶
Most methods return new collections:
const original = new Collection([1, 2, 3]);
const filtered = original.filter(n => n > 1);
// original unchanged
Method Chaining¶
Chain methods for fluent syntax:
Next: Query Operators