Joined May 2013
·
Posted to
Cache function's return value in javascript
over 1 year
ago
You can access it from 'foo.cache'
Achievements
41 Karma
1,102 Total ProTip Views
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Honey Badger
Have at least one original Node.js-specific repo
@victorbjelkholm in your case if
window.console
is not defined you are still going to get type error undefined for callingconsole().log('something')