Task: Convert Comma-Separated String to JavaScript Array
Task: Convert Comma-Separated String to JavaScript Array: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a JavaScript solution that converts a comma-separated string into a proper JavaScript array. Given a string like "0,1" , the solution should produce an array where…
The task
You need to implement a JavaScript solution that converts a comma-separated string into a proper JavaScript array. Given a string like `"0,1"`, the solution should produce an array where individual elements can be accessed by their index.
Part of PrimeIntellect/Terminal-Lego-15k.