source:
frontend/node_modules/underscore/modules/_shallowProperty.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 202 bytes | |
| Line | |
|---|---|
| 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 | } |
Note:
See TracBrowser
for help on using the repository browser.
