* The base implementation of `_.property` without support for deep paths. * * @private * @param {string} key The key of the property to get. * @returns {Function} Returns the new accessor function.
(key)
| 891 | * @returns {Function} Returns the new accessor function. |
| 892 | */ |
| 893 | function baseProperty(key) { |
| 894 | return function(object) { |
| 895 | return object == null ? undefined : object[key]; |
| 896 | }; |
| 897 | } |
| 898 | |
| 899 | /** |
| 900 | * The base implementation of `_.propertyOf` without support for deep paths. |