Hacker News new | ask | show | jobs
by sipefree 5289 days ago
Looks like you can't pass a function as an argument to any of the functions in a Sugarless chain.

Seems like a pretty glaring oversight to me.

1 comments

Sugarless is something difference from other libraries, I think we can pass any functions into the Sugarless chain as array.

Seems this example explain how deal with functions as arguments in the Sugarless chain. https://github.com/laktek/SugarlessJS/blob/master/examples/c...