Answer the question
In order to leave comments, you need to log in
How to create a blacklist for certain words/names in Node.js?
You need to create a JSON file with items: remove "The" and add a tag; completely remove items with a certain name from the list.
request({
url: url,
json: true
}, function(error, response, body){
if (!error && response.statusCode === 200){
LootPriceH = body;
LootPriceH.forEach((item, i) => {
//Looking for special words here
item.price = Math.floor(item.price*9/5);
item.need = item.max-item.have;
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question