diff options
Diffstat (limited to 'includes/external/school/node_modules/lodash/_basePropertyOf.js')
-rw-r--r-- | includes/external/school/node_modules/lodash/_basePropertyOf.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/external/school/node_modules/lodash/_basePropertyOf.js b/includes/external/school/node_modules/lodash/_basePropertyOf.js new file mode 100644 index 0000000..4617399 --- /dev/null +++ b/includes/external/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; |