Your IP : 216.73.216.79


Current Path : /var/www/html/reddsis/node_modules/underscore/amd/
Upload File :
Current File : /var/www/html/reddsis/node_modules/underscore/amd/before.js

define(function () {

  // Returns a function that will only be executed up to (but not including) the
  // Nth call.
  function before(times, func) {
    var memo;
    return function() {
      if (--times > 0) {
        memo = func.apply(this, arguments);
      }
      if (times <= 1) func = null;
      return memo;
    };
  }

  return before;

});