I'm trying to loop through an enmap, but it doesn't seem to be working. I got forEach()
to work, however, I need to be able to break out of it, which doesn't work with forEach()
. Here's what I currently have
for(var id in bot.myenmap.fetchEverything()) {
console.log("test")
}
I have no other details as I can provide, as it doesn't error or log anything. If you know how to loop over it, any help would be appreciated, thanks.