Source: mixin/noop.js

/*! noop.js */

/**
 * This mixin provides
 * [noop()]{@linkcode KagoDB#noop}
 * method which does no operation.
 *
 * @class noop
 * @mixin
 * @example
 * var collection = new KagoDB({storage: 'json'});
 *
 * collection.noop(); // does nothing
 */

/**
 * This does no operation per default.
 *
 * @method KagoDB.prototype.noop
 * @returns {KagoDB} itself for method chaining
 * @example
 * var collection = new KagoDB({storage: 'json'});
 *
 * collection.noop().noop().noop().noop(); // does nothing four times
 */

module.exports = function() {
  return {
    noop: function() {
      return this;
    }
  };
};