diff options
Diffstat (limited to 'school/node_modules/lodash/_basePropertyOf.js')
-rw-r--r-- | school/node_modules/lodash/_basePropertyOf.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/school/node_modules/lodash/_basePropertyOf.js b/school/node_modules/lodash/_basePropertyOf.js new file mode 100644 index 0000000..4617399 --- /dev/null +++ b/school/node_modules/lodash/_basePropertyOf.js @@ -0,0 +1,14 @@ +/** + * The base implementation of `_.propertyOf` without support for deep paths. + * + * @private + * @param {Object} object The object to query. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyOf(object) { + return function(key) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = basePropertyOf; |