0

I have a variable that contains a json object. I need to form an array using this variable such that all values present in the json object against all keys should be present in the formed array.

What I have

let obj = { "name":"abdus", "age":25, "present": true };

What I need

result: ["abdus", 25, true]

Is there any way to achieve this? thanks in advance.

Randy Casburn
  • 13,840
  • 1
  • 16
  • 31
Abdus Sattar
  • 239
  • 1
  • 4
  • 13

0 Answers0