Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

make a flat object from object of object list

var object =  { 0: [1, 2, 3, 4] },
    result = Object.keys(object).reduce(function (r, k) {
        return r.concat(k, object[k]);
    }, []);
    
console.log(result);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flat #object #object #object #list
ADD COMMENT
Topic
Name
9+9 =