diff --git a/src/entity.js b/src/entity.js index 063d6b7..9104a88 100644 --- a/src/entity.js +++ b/src/entity.js @@ -160,7 +160,7 @@ class SourcedEntity extends EventEmitter { merge (snapshot) { log(util.format('merging snapshot %j', snapshot)) for (var property in snapshot) { - if (snapshot.hasOwnProperty(property)) { var val = cloneDeep(snapshot[property]) } // eslint-disable-line no-prototype-builtins + if (Object.prototype.hasOwnProperty.call(snapshot, property)) { var val = cloneDeep(snapshot[property]) } this.mergeProperty(property, val) } return this