You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

find.js 279B

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