Skip to content

Commit

Permalink
Change if-condition to check for arguments.length
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe authored Jan 23, 2018
1 parent eee609d commit 2775010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/property-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@
//
let ret;
// Omit any additional arguments if they were not passed in
if (start !== undefined && !deleteCount && !items.length) {
if (arguments.length === 2) {
ret = array.splice(start);
// Either start was undefined and the others were defined, but in this
// case we can safely pass on all arguments
Expand Down

0 comments on commit 2775010

Please sign in to comment.