Skip to content

Commit 60f47fc

Browse files
authored
Update arrays.js
1 parent a9c765c commit 60f47fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/utils/arrays.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ define([
101101
newIndex,
102102
target;
103103

104-
if (typeof position === 'undefined') {
104+
if (typeof position === 'undefined' || position == null) {
105105
position = -1;
106106
} else if (typeof position === 'string') {
107107
position = isNaN(+position) ? position : +position;

0 commit comments

Comments
 (0)