Js determines whether the value of the field in the json array is equal to another value.

clipboard.png
how can I tell whether the value of us_id in this json array is equal to 7. Whether the value in this includes id equals 7. Can there be no cycle? Just determine whether the value in this field is equal to 7.

Apr.28,2021

update:
or that's what you want

Array.prototype.find()</a>

const item = res.list.find(({us_id}) => '7' === us_id);
if (item){
  console.log(item)
} 
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b41fb9-349a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b41fb9-349a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?