This PR includes tests and typescript description.
Adds helper function array_of
var array_of = function(times, generator) {
var result = [];
for (var i = 0; i < times; ++i) {
result.push(generator());
}
return result;
};
https://github.com/boo1ean/casual#generators-functions
Under the generated functions header in the Readme, this function is used as example, I thought it would be better to have this helper function availible in casual.
This PR includes tests and typescript description.
Adds helper function
array_of
https://github.com/boo1ean/casual#generators-functions Under the generated functions header in the Readme, this function is used as example, I thought it would be better to have this helper function availible in casual.