TodePond / Habitat

my javascript helpers
MIT License
45 stars 5 forks source link

Add MEMOIZE function to automatically memoize a function #57

Closed mintexists closed 1 year ago

mintexists commented 1 year ago

I would be happy to write out a page for the gitbook as well, but i was not able to find how to edit that

TodePond commented 1 year ago

Hey awesome thanks! Do you think we could rename the global function from MEMOIZE to memo? Then I'll merge it!

I'll change the gitbook settings at some point so that it can be edited via GitHub :)

TodePond commented 1 year ago

You should be able to submit changes to the docs branch now to change the gitbook docs

mintexists commented 1 year ago

Is there a specific way to stylize optional arguments in the documentation? i was thinking of doing memo(function, [keyMaker]) but would like to avoid confusion

TodePond commented 1 year ago

Great! Thanks!

And yes, that style is good!