Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.map((control) => {
// Get all ids available on controls
if (hasAttributeValue(control, 'id')) {
this.ids.push(getAttribute(control, 'id'));
}
return getAttribute(control, 'name');
})
.reduce((_controls_, name) => {
attributes.forEach((attributeName) => {
if (hasAttributeValue(controlElement, attributeName)) {
validationParameters[validationName] = getAttribute(controlElement, attributeName);
}
});
});
.filter(control => hasAttributeValue(control, 'name'))
.map((control) => {