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