Call a function at most once and remember the result. Args are not supported
Call a function at most once and remember the result. Args are not supported.
var memo = require'async-memo'var doc = memo// fetch remote document// you want this to be done only oncefetchcbdoc// use fetched document here// You can safely call doc() from everywhere at any time.// fetch() will be called only once.
component install eldargab/async-memo
npm install async-memo