MCPcopy
hub / github.com/lodash/lodash / baseAssignValue

Function baseAssignValue

lodash.js:2597–2608  ·  view source on GitHub ↗

* The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign.

(object, key, value)

Source from the content-addressed store, hash-verified

2595 * @param {*} value The value to assign.
2596 */
2597 function baseAssignValue(object, key, value) {
2598 if (key == '__proto__' && defineProperty) {
2599 defineProperty(object, key, {
2600 'configurable': true,
2601 'enumerable': true,
2602 'value': value,
2603 'writable': true
2604 });
2605 } else {
2606 object[key] = value;
2607 }
2608 }
2609
2610 /**
2611 * The base implementation of `_.at` without support for individual paths.

Callers 7

assignMergeValueFunction · 0.85
assignValueFunction · 0.85
copyObjectFunction · 0.85
fromPairsFunction · 0.85
lodash.jsFile · 0.85
mapKeysFunction · 0.85
mapValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected