memoize-functions
Create a new object replacing functions with memoized versions
Usage
let obj = output: 'I beg your pardon' output: message output: message text: output: 'String' let newObj = newObj === newObjnewObj === newObjnewObj === newObjnewObjtext === newObjtext
Then attributes info
, log
and warn
are replaced by memoized versions
(it supports destructured parameters).
Attribute text
is kept the same, only functions are memoized.
You can also choose which functions should be memoized:
newObj = newObj === newObjnewObj === newObjnewObj !== newObjnewObjtext === newObjtext
The attribute log
and warn
are memoized but info
is kept the same.
Contributing
First of all, thank you for wanting to help!
- Fork it.
- Create a feature branch -
git checkout -b more_magic
- Add tests and make your changes
- Check if tests are ok -
npm test
- Commit changes -
git commit -am "Added more magic"
- Push to Github -
git push origin more_magic
- Send a pull request! ❤️ 💖 ❤️