_keyInObj.js 225 B

123456789101112
  1. define(function () {
  2. // Internal `_.pick` helper function to determine whether `key` is an enumerable
  3. // property name of `obj`.
  4. function keyInObj(value, key, obj) {
  5. return key in obj;
  6. }
  7. return keyInObj;
  8. });