Create a null-prototype object for the mapping instead

master
Sven Slootweg 2 years ago
parent 9254ce02c8
commit 0af3a32b45

@ -1,7 +1,7 @@
"use strict";
module.exports = function splitFilter(array, ensureCategories, predicate) {
let results = {};
let results = Object.create(null);
if (ensureCategories != null) {
for (let category of ensureCategories) {

Loading…
Cancel
Save