Buckets:
ktongue/docker_container / CAD_kevin /frontend /node_modules /adjust-sourcemap-loader /lib /process /get-field-as-fn.js
| ; | |
| /** | |
| * Create a method that will retrieve the given field from an object where that field has a function value | |
| * @param {string} field The field to consider | |
| * @returns {function(object):function} A method that gets functions from the given field | |
| */ | |
| function getFieldAsFn(field) { | |
| return function getFromValue(value) { | |
| return !!value && (typeof value === 'object') && (typeof value[field] === 'function') && value[field]; | |
| }; | |
| } | |
| module.exports = getFieldAsFn; |
Xet Storage Details
- Size:
- 483 Bytes
- Xet hash:
- 44893b97f767630622f204f68bcd2d92cfceb80a42d97154b872d40d9dd27c2a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.