But I care about performance and readability.
The fastest way is to use a
You could use the below code snippet as a utility function.
My favorite way for readability reasons and it's still high performing is using
Object.keys is faster than using