convert object to array in javascript to use in for loop

convert object to array in javascript to use in for loop