jcubic / gaiman

Gaiman: Text based game engine and programming language
https://gaiman.js.org
GNU General Public License v3.0
138 stars 11 forks source link

string.split should return GaimanArray #78

Open jcubic opened 2 years ago

jcubic commented 2 years ago

There is a need to use a custom class that extends strings in order to change split() function.

This is needed to you can use Gaiman functions (that are async) with split("\n").map(...)