demo/bundle.js
/**
             * Create a cached version of a pure function.
             */
Create a cached version of a pure function.
Create a cached version of a pure function .
function cached (fn) {
              var cache = Object.create(null);
              return (function cachedFn (str) {
                var hit = cache[str];
                return hit || (cache[str] = fn(str))
              })
            }
function cached ( fn ) { var cache = Object . create ( null ) ; return ( function cachedFn ( str ) { var hit = cache [ str ] ; return hit || ( cache [ str ] = fn ( str ) ) } ) }
Create a cached version of a pure function.
Create a cached version of a pure function .