Is there a way to transform the string "000000111111111110000000000000000000000001111111" into an array of numbers such as [0,0,0,...,1,1]?
I attempted these methods without achieving the desired result:
eval('[' + string + ']')
as well as
JSON.parse('[' + string + ']')