From 46fcd512f77e970b44ca8939383ebf0242a84451 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 14 May 2021 11:35:28 +0200 Subject: [PATCH] bindDataTestAttributes: Convert `forEach()` to `for..of` loop --- addon/utils/bind-data-test-attributes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/utils/bind-data-test-attributes.js b/addon/utils/bind-data-test-attributes.js index 5c87cdd9..ee3c3720 100644 --- a/addon/utils/bind-data-test-attributes.js +++ b/addon/utils/bind-data-test-attributes.js @@ -37,7 +37,9 @@ export default function bindDataTestAttributes(component) { attributeBindings = attributeBindings.slice(); } - dataTestProperties.forEach(it => attributeBindings.push(it)); + for (let prop of dataTestProperties) { + attributeBindings.push(prop); + } try { component.set('attributeBindings', attributeBindings);