Front end of the Slack clone application.

1234567891011
  1. "use strict";
  2. var findKey = require("./find-key")
  3. , isValue = require("./is-value");
  4. // eslint-disable-next-line no-unused-vars
  5. module.exports = function (obj, cb /*, thisArg, compareFn*/) {
  6. var key = findKey.apply(this, arguments);
  7. return isValue(key) ? obj[key] : key;
  8. };