Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get particular key value from array of objects in javascrip

let itemYouWant = null;
array.forEach((item) => {
    if (item.name === 'string 1') {
        itemYouWant = item;
    }
});
console.log(itemYouWant);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #key #array #objects #javascrip
ADD COMMENT
Topic
Name
5+8 =