Getting javascript object property and values




Here are some common functions to discover properties and values of an object using properties.

a) Object.keys - Get all the keys of an object

b) Object.values

c) Object.getOwnPropertyDescriptors



The following code snippet demonstrate how to work with these methods.






Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm