Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / globule / node_modules / lodash / _baseAssignValue.js
1 var 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  */
12 function 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
25 module.exports = baseAssignValue;