mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Use an arrow function.
This commit is contained in:
@@ -137,7 +137,7 @@ function tidyHighlights($) {
|
||||
$element.attr('class', attr || null);
|
||||
});
|
||||
// Collapse nested highlights.
|
||||
_.each(['comment', 'string'], function(cls) {
|
||||
_.each(['comment', 'string'], cls => {
|
||||
$parent.find(`[class~="${ cls }"] > [class~="${ cls }"]`).each(function() {
|
||||
const $parent = $(this).parent();
|
||||
$parent.text($parent.text());
|
||||
|
||||
Reference in New Issue
Block a user