Implement a hook useObject(initialObject) that provides a reactive object with utility functions.
The hook should:
get, set, delete keys.clear() to remove all keys.keys(), values(), entries() to access the current state.Example
const obj = useObject({ a: 1, b: 2 }); obj.set("c", 3); obj.get("a"); // 1 obj.delete("b"); obj.has("b"); // false
JavaScript Function
No test results yet
Click "Run" to execute tests