-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
  • 409
  • 3
  • 11
  • 24

1 Answers1

1

You can use:

JSON.parse("[[16, [8, 2], 4], 2, 80]")
Mohammad Usman
  • 34,173
  • 19
  • 88
  • 85
Pelumi
  • 363
  • 2
  • 3
  • 13