Skip to content

Commit

Permalink
Perform the fastest check first
Browse files Browse the repository at this point in the history
  • Loading branch information
lehni committed Apr 22, 2023
1 parent 27bbbb8 commit 123efe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/model/modelSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ function setFast(model, obj) {
const value = obj[key];

if (
value !== undefined &&
!isInternalProp(key) &&
!isFunction(value) &&
!readOnlyAttr.includes(key) &&
value !== undefined
!readOnlyAttr.includes(key)
) {
model[key] = value;
}
Expand Down

0 comments on commit 123efe2

Please sign in to comment.