/
githubmirror
/
lodash
Обзор
Документация
Войти
/
githubmirror
/
lodash
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4.18.0-amd
_baseProperty.js
20 строк
498 B
John-David Dalton
Bump to v4.12.0.
08 май 2016, 22:21
08 май 2016, 22:21
6f47eae
Код
Авторство
О чём код?
define([], function() { /** Used as a safe reference for `undefined` in pre-ES5 environments. */ var undefined; /** * 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]; }; } return baseProperty; });