• File: _baseProperty.js
  • Full Path: /var/www/nodejs/callDir/node_modules/lodash/_baseProperty.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 360 bytes
  • MIME-type: text/plain
  • Charset: utf-8
/**
 * 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.
 */
function baseProperty(key) {
  return function(object) {
    return object == null ? undefined : object[key];
  };
}

module.exports = baseProperty;