Skip to content

Tag: node.js

How to identify a pattern in a string in nodejs

I have the following problem that I have not been able to solve for several hours: What I want to do is that when I receive a string, identify a pattern in said string and be able to use it later, for example when receiving the text: “Hello this is an example message, the hashtag of the day is #Phone,

editing a JSON in JS and putting it in an array

so I have the following json. I need to remove the items that don’t have a value in the “available” field (such as NEO and ETH and set the result in an array. Then remove the onOrder and btcTotal fields. such as: BTC 0.00024868 0.00024868 BNB 0.8943066 0.0004663808919 I am writing my little …