This project has moved and is read-only. For the latest updates, please go here.

add function to string

May 2, 2014 at 6: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 4, 2014 at 12:33 AM
You know there is already a split function on strings, right?
var a = "abc,def".split(",")
a is ["abc", "def"]