How to Convert Array of Objects to Array of Integers in Lodash [duplicate]

  javascript, lodash

I have this object result:

[{"id":1},{"id":2},{"id":3}]

How can I convert this to

[1,2,3]

in Lodash?

Source: Ask Javascript Questions

LEAVE A COMMENT