Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get keys of an array angualr

for (let obj of arr) {
    console.log("object:", obj);
    for (let key in obj) {
        console.log("      key:", key, "value:", obj[key]);
    }
}
 
PREVIOUS NEXT
Tagged: #keys #array #angualr
ADD COMMENT
Topic
Name
3+2 =