index.js
function fixArgs (callee) {
  return (options, fn) => {
    if (typeof fn != 'function' && typeof options == 'function') {
      fn = options;
      options = {};
    }
    else {
      options = options || {};
    }

    options.asc = options.asc || options.asc == null;

    return callee(options, fn);
  };
}
function fixArgs (callee) {
  return (options, fn) => {
    if (typeof fn != 'function' && typeof options == 'function') {
      fn = options;
      options = {};
    }
    else {
      options = options || {};
    }

    options.asc = options.asc || options.asc == null;

    return callee(options, fn);
  };
}
function fixArgs ( callee ) { return ( options , fn ) => { if ( typeof fn != 'function' && typeof options == 'function' ) { fn = options ; options = { } ; } else { options = options || { } ; } options . asc = options . asc || options . asc == null ; return callee ( options , fn ) ; } ; }
Deal with missing arguments and default values.
Deal with missing arguments and default values .