I have an API to get js file from blob in response and I need to check an element in the js that may occur multiple times.
I tried using “contains
” but it does not tell me the total number of occurences but the fact that js has the element.
How can I get the total number of its instances?
New contributor
Divya Khurana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.