docs/examples/basic.js
/**
	   * Merge two objects, but throw if both contain the same key.
	   *
	   * @param {object} one The first object, which is mutated.
	   * @param {object} two The second object
	   * @return {object} one after it has been mutated to contain everything in two.
	   */
Merge two objects, but throw if both contain the same key.
@param {object} one The first object, which is mutated.
@param {object} two The second object
@return {object} one after it has been mutated to contain everything in two.
Merge two objects but throw if both contain the same key . @param { object } one The first object which is mutated . @param { object } two The second object @return { object } one after it has been mutated to contain everything in two .
function mergeIntoWithNoDuplicateKeys(one, two) {
				!(one && two && (typeof one === "undefined" ? "undefined" : _typeof(one)) === 'object' && (typeof two === "undefined" ? "undefined" : _typeof(two)) === 'object') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.') : _prodInvariant('80') : void 0;
				for (var key in two) {
					if (two.hasOwnProperty(key)) {
						!(one[key] === undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.', key) : _prodInvariant('81', key) : void 0;
						one[key] = two[key];
					}
				}
				return one;
			}
function mergeIntoWithNoDuplicateKeys ( one , two ) { ! ( one && two && ( typeof one === "undefined" ? "undefined" : _typeof ( one ) ) === 'object' && ( typeof two === "undefined" ? "undefined" : _typeof ( two ) ) === 'object' ) ? process . env . NODE_ENV !== 'production' ? invariant ( false , 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' ) : _prodInvariant ( '80' ) : void 0 ; for ( var key in two ) { if ( two . hasOwnProperty ( key ) ) { ! ( one [ key ] === undefined ) ? process . env . NODE_ENV !== 'production' ? invariant ( false , 'mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.' , key ) : _prodInvariant ( '81' , key ) : void 0 ; one [ key ] = two [ key ] ; } } return one ; }
Merge two objects, but throw if both contain the same key.
Merge two objects but throw if both contain the same key .