findKeys
Finds all the keys in the provided object that match the given value.
- Use
Object.keys(obj)
to get all the properties of the object. - Use
Array.prototype.filter()
to test each key-value pair and return all keys that are equal to the given value.