How to get a subset of a javascript object’s properties?

Posted by Editorial Staff | Updated on

Want to get a subset of a javascript object’s properties? Use the below example to get a subset of a javascript object’s properties.

And you only want the name and age, you can create the new objects using −


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers