add function to string

May 2, 2014 at 5:19 PM
hi, i would add a function to a string:
        [JSInternalFunction(Name = "explode")]
        public static ArrayInstance Explode(string s, string sep)
           return new ArrayInstance(??), new object[]{s.Explode(sep)});
what should i insert in the ?? part?
May 3, 2014 at 11:33 PM
You know there is already a split function on strings, right?
var a = "abc,def".split(",")
a is ["abc", "def"]