From 51ffdad98526ea51d70708cd26550aecde2719d9 Mon Sep 17 00:00:00 2001 From: Luc Lagarde Date: Mon, 3 May 2021 12:39:56 -0500 Subject: [PATCH] Fix "'_' is not a function" error. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ecc0b23..b461538 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ function parseParticles(particles) { } if (_.isObject(particles) && !_.isArray(particles)) { - _(particles).forEach(function(value, key) { + _.forEach(particles, function(value, key) { const newValue = Array.from(value); allParticles[key] = { items: newValue.sort((a, b) => (a.length === b.length ? a.localeCompare(b) : a.length - b.length)),