-1

Is there any in build function in javascript that let's me convert string "[[16, [8, 2], 4], 2, 80]" to an array of array or int [[16, [8, 2], 4], 2, 80]

Chetan
  • 469
  • 3
  • 12
  • 27

1 Answers1

1

You can use:

JSON.parse("[[16, [8, 2], 4], 2, 80]")
Mohammad Usman
  • 37,952
  • 20
  • 92
  • 95
Pelumi
  • 413
  • 2
  • 5
  • 13