How can I count the occurrences of a word in an array of strings using javascript?

前端 未结 0 1721
暗喜
暗喜 2021-01-04 19:07

If I have this array

const arr1 = ["cat", "I love cats and I have many cats", "dog"]

and running arr1.fil

相关标签:
回答
  • 消灭零回复
提交回复
热议问题