You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find this library to be very difficult to use without control flow functions. This is absolutely unacceptable and should be remedied ASAP!!!
Below are a few examples how these would work:
five.times(function(){});
Executes the function passed as parameter five times.
five.moreTimes(function(){});
In case you need the function to be executed five more times, duh!
five.equals(some_variable_that_isnt_five).then(function(){}).else(function(){});
This is pretty self explanatory, I don't even know how you haven't thought about it yet!
The text was updated successfully, but these errors were encountered:
five.times=functiontimes(func){varsmallFive=five()/five();while(smallFive!==five()){func();smallFive++;}}five.moreTimes=functionmoreTimes(func){five.times(func);five.times(func);}five.equals=functionequals(possibleFive){varfiveObject={};// sorry it's not a fivefiveObject[five()]=five();// here's my apologyvarisFive=possibleFive==five();varfunctor=function(failOrSucceed){returnfunction(todo){if(failOrSucceed==isFive){todo();}returnfiveObject;}}fiveObject["then"]=functor(true);fiveObject["else"]=functor(false);returnfiveObject;}
I find this library to be very difficult to use without control flow functions. This is absolutely unacceptable and should be remedied ASAP!!!
Below are a few examples how these would work:
five.times(function(){});
Executes the function passed as parameter five times.
five.moreTimes(function(){});
In case you need the function to be executed five more times, duh!
five.equals(some_variable_that_isnt_five).then(function(){}).else(function(){});
This is pretty self explanatory, I don't even know how you haven't thought about it yet!
The text was updated successfully, but these errors were encountered: