code: function find(param) {
    var fn, asInt = parseInt(param, 10);
    fn = isNaN(asInt) ? findByUsername : findById;
    fn.apply(null, arguments);
  }
docs: Smart find, uses findByUsername or findBy
  
  @param {*} param