Let's see the example below:-
We have a numb as JS object
var numb = {
    1: [22, 33, 44],
    2: [11, 99, 66]
};
var DefineArray = $.map(numb, function(value, index) {
    return [value];
});
console.log(DefineArray);
Output:
[[22, 33, 44], [11, 99, 66]]
Now you have an array converted from JS object 
                       
                    
0 Comment(s)