CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_baseAssignValue.js26 linesDownload Raw Back to lodash-es
1import defineProperty from './_defineProperty.js';2 3/**4 * The base implementation of `assignValue` and `assignMergeValue` without5 * value checks.6 *7 * @private8 * @param {Object} object The object to modify.9 * @param {string} key The key of the property to assign.10 * @param {*} value The value to assign.11 */12function baseAssignValue(object, key, value) {13  if (key == '__proto__' && defineProperty) {14    defineProperty(object, key, {15      'configurable': true,16      'enumerable': true,17      'value': value,18      'writable': true19    });20  } else {21    object[key] = value;22  }23}24 25export default baseAssignValue;26 
basant307/AI_Governance_Project · CoolFace