Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$('.links').find('.max-number-links').each((i, el) => {
const target = $(el);
const max = target.closest('.links').attr('data-max-number-links');
target.text(convertToText(max).toLowerCase());
});
});