/* * Inspiration from: * https://github.com/addyosmani/memoize.js/blob/master/memoize.js * * Thanks Addy! */ (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define([], factory); } else if (typeof exports === 'object') { // Node. Does not work with strict CommonJS, but // only CommonJS-like environments that support module.exports, // like Node. module.exports = factory(); } else { // Browser globals (root is window) root.memoize = factory(); } }(this, function() { "use strict"; var memoize = function(func) { /* Your awesome module logic here */ }; return memoize; }));