Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,8 +1,8 @@
import baseAssignValue from './baseAssignValue.js';
import eq from '../eq.js';
import baseAssignValue from './baseAssignValue.js'
import eq from '../eq.js'
/** Used to check objects for own properties. */
const hasOwnProperty = Object.prototype.hasOwnProperty;
const hasOwnProperty = Object.prototype.hasOwnProperty
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
@@ -15,11 +15,11 @@ const hasOwnProperty = Object.prototype.hasOwnProperty;
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
const objValue = object[key];
const objValue = object[key]
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
baseAssignValue(object, key, value);
baseAssignValue(object, key, value)
}
}
export default assignValue;
export default assignValue