Current File : /home/tradevaly/www/node_modules/collect.js/dist/methods/when.js
'use strict';

module.exports = function when(value, fn, defaultFn) {
  if (value) {
    return fn(this, value);
  }

  if (defaultFn) {
    return defaultFn(this, value);
  }

  return this;
};