How to return all the values of an object into an array (using one line of code)?

how can I return all the values of an object into an array:

var obj = {a: "123", b: "234", c: "offer"}

I mean to use a very simple method (such as one line of code to do it), but not to use a for loop.

Apr.11,2021
For

ES2017, you can use
Object.values


const arr = Object.values (obj)


Object.keys(obj).map(function(v) {return obj[v];})

or

Object.values(obj)
Menu