Skip to content

Commit baa650e

Browse files
committed
MC-41900: Fix jQuery.isArray()
1 parent affa4ad commit baa650e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/address-converter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ define([
104104
}
105105
});
106106

107-
if ($.isArray(addrs.street)) {
107+
if (Array.isArray(addrs.street)) {
108108
streetObject = {};
109109
addrs.street.forEach(function (value, index) {
110110
streetObject[index] = value;
@@ -113,7 +113,7 @@ define([
113113
}
114114

115115
//jscs:disable requireCamelCaseOrUpperCaseIdentifiers
116-
if ($.isArray(addrs.customAttributes)) {
116+
if (Array.isArray(addrs.customAttributes)) {
117117
customAttributesObject = {};
118118
addrs.customAttributes.forEach(function (value) {
119119
customAttributesObject[value.attribute_code] = value.value;

0 commit comments

Comments
 (0)