#27Objects - The Must have
Overview
Master the most important object utilities in JavaScript — from keys, values, and entries to property checks, merging, and the new Object.groupBy. These fundamentals will boost how you organize, transform, and query data structures in any real-world React project.
Requirements
- Use only built-in JavaScript object methods (Object.keys, Object.values, Object.entries, etc.).
- Understand the difference between reading object data and mutating it.
- Implement the provided Object.groupBy polyfill if needed.
- Ensure the merge operation (Object.assign) modifies the original object.
Notes
- Some tests depend on the mutation performed in a previous step (for example, #7 relies on #5 modifying the original homer object).
- Avoid creating new objects unless the challenge explicitly requires it.
- Review the MDN documentation for each method to deepen your understanding.
Tests
- gets the keys of the object
- gets the values of the object
- checks if object has the property 'name'
- converts the object into an array of key-value pairs
- merges two objects (mutates the original)
- groups characters by status and shows only names
- checks if homer has occupation (depends on #5 mutation)