Destructuring Spread and RestCheatsheet
Unpack values with destructuring, then expand or gather them using the spread and rest operators.
Direct, one-page reference guides to build software and AI systems, grow personal wealth, and optimize everyday health — designed for quick lookups and visual learners.
Unpack values with destructuring, then expand or gather them using the spread and rest operators.
Handle errors with try/catch and finally, throw and create custom Error types, and catch async errors.
Understand iterables, the iteration protocol, generators, and async iteration with for await...of.
Store unique values and keyed data with Set and Map, and hold weak references with WeakMap.
Slice, search, replace, split, and pad strings, and build them with template literal interpolation.
Skip repeat AI calls by caching answers by prompt and deduplicating requests already in flight.
Cancel in-flight AI requests with AbortController when the user navigates away or starts a new query.
Wait for the user to stop typing before calling the AI, so you fire one request instead of dozens.
Keep the UI responsive during slow AI calls with optimistic updates, transitions, and clear status states.
Recover from AI rate limits by respecting Retry-After and retrying with exponential backoff and jitter.
Keep AI API keys off the client by calling the provider from a server route your React app fetches.
Render AI output token by token as it streams in, so users see progress instead of a spinner.
Split take-home pay into 50% needs, 30% wants, and 20% savings for a simple, flexible budget.
Learn the core budgeting ideas: take-home pay, fixed and variable costs, and monthly cash flow.
Budget by paycheck instead of by month, split bills in half, and plan for extra-paycheck months.
Free up real money by cutting subscriptions, negotiating bills, and lowering your three biggest costs.
Compare two proven payoff methods: avalanche saves the most interest, snowball builds the most motivation.
Build a cash cushion covering three to six months of essentials, kept safe and easy to reach.