find.js 279 B

12345678910
  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. };