stackoverflow.com/q/13271670/1577343

Say for example I want to split string "12:30-14:40" and have the result in a matrix like: [["12","30"],["14","40"]].

I can do this in JavaScript with:

"12:30-14:40".split("-").map(function(x) { ...


Comments (0)

Sign in to post comments.