fp-immutable
Installation
SKILL.md
Practical Immutability in TypeScript
Why Immutability Helps
// Bug: shared state causes unexpected behavior
const filters = { active: true, category: 'all' };
const savedFilters = filters; // Not a copy!
filters.active = false;
console.log(savedFilters.active); // false - oops!
// Fix: immutable update creates a new object
const filters2 = { active: true, category: 'all' };
const savedFilters2 = { ...filters2 }; // Actual copy
filters2.active = false;
console.log(savedFilters2.active); // true - safe!
Benefits in practice:
Related skills
More from whatiskadudoing/fp-ts-skills
functional programming fundamentals
Core FP concepts including pure functions, currying, composition, and pointfree style - the foundation for mastering functional TypeScript
80fp-ts-backend
Functional programming patterns for Node.js/Deno backend development using fp-ts, ReaderTaskEither, and functional dependency injection
52pragmatic functional programming
A practical, jargon-free guide to functional programming - the 80/20 approach that gets results without the academic overhead
40functional programming in react
Practical patterns for using fp-ts with React - hooks, state, forms, data fetching. Works with React 18/19, Next.js 14/15.
40fp-ts-validation
Validation patterns using fp-ts with error accumulation, form validation, and API input validation
39fp-ts-async-practical
Practical async patterns using TaskEither - clean pipelines instead of try/catch hell, with real API examples
38