order = ['mercury', 'venus', 'earth', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', 'pluto'];
var scrambled = {
pluto : 'pluto very far',
mars: 'mars very near',
saturn: 'saturn dnt care',
jupiter: 'jupiter',
uranus : 'uranus',
earth: 'earth',
mercury: 'mercury',
venus: 'venus',
neptune: 'neptune'
};
need to extract the object into an array with the given order,
I am looking for a solution which can solve this is max of 2 to 3 lines.
order.map(x => scrambled[x]).