source: trip-planner-front/node_modules/lodash/_baseAssignValue.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 625 bytes
RevLine 
[6a3a178]1var defineProperty = require('./_defineProperty');
2
3/**
4 * The base implementation of `assignValue` and `assignMergeValue` without
5 * value checks.
6 *
7 * @private
8 * @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': true
19 });
20 } else {
21 object[key] = value;
22 }
23}
24
25module.exports = baseAssignValue;
Note: See TracBrowser for help on using the repository browser.