Skip to content

Commit f4a9b55

Browse files
committed
_.flatten -> array.flat
1 parent c79814c commit f4a9b55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/whitelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
var tags = links.map(function(link) {
157157
return getTags.apply(that, [link.source, link.type]);
158158
});
159-
tags = _.unique(_.flatten(tags));
159+
tags = _.unique(tags.flat());
160160
// Remove allow if denied.
161161
var allowIdx = tags.indexOf("allow");
162162
var denyIdx = tags.indexOf("deny");

modules/tests-ui/tester.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function processPluginTests(pluginTest, plugin, count, cb) {
331331

332332
urls = urls || [];
333333

334-
urls = _.flatten(urls);
334+
urls = urls.flat();
335335

336336
var errors = urls.filter(function(url) {
337337
return url && url.error;

0 commit comments

Comments
 (0)