From 8152b791e78ea6447e83208794e487f3910027b4 Mon Sep 17 00:00:00 2001 From: Patrick Lee Scott Date: Tue, 26 May 2020 12:06:47 -0400 Subject: [PATCH] fix: https://eslint.org/docs/rules/no-prototype-builtins --- src/entity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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