Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

break object pair into array in js

var arr = {
        X:1,
        Y:2,
        Z:3
    };


Object.keys(arr).map(key => { console.log(key, arr[key]) })
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #break #object #pair #array #js
ADD COMMENT
Topic
Name
1+6 =