Initial commit

This commit is contained in:
UltraLionfr
2024-11-04 15:43:02 +01:00
parent a342d67dc8
commit 861d1797b0
7308 changed files with 558047 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* 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;