_shallowProperty.js 202 B

123456
  1. // Internal helper to generate a function to obtain property `key` from `obj`.
  2. export default function shallowProperty(key) {
  3. return function(obj) {
  4. return obj == null ? void 0 : obj[key];
  5. };
  6. }