source:
frontend/node_modules/underscore/cjs/_shallowProperty.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 222 bytes | |
| Line | |
|---|---|
| 1 | // Internal helper to generate a function to obtain property `key` from `obj`. |
| 2 | function shallowProperty(key) { |
| 3 | return function(obj) { |
| 4 | return obj == null ? void 0 : obj[key]; |
| 5 | }; |
| 6 | } |
| 7 | |
| 8 | module.exports = shallowProperty; |
Note:
See TracBrowser
for help on using the repository browser.
