How to check If there is a string match in an array of objects?

前端 未结 0 1019
梦毁少年i
梦毁少年i 2021-01-18 07:02

I have an array and I want to check If the string "a" is in one of the objects in it or not .

const myArray = [
    {
        name: \'JootiJeans\',
         


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