The js array contains multiple objects. How to find this object according to an attribute of the object?

list=[
    {
        a:1,
        b:2
    },
    {
        a:3,
        b:4
    },
    {
        a:5,
        b:6
    }
]

now that I get an object in the array with a value of 5, I need to find the value of b, that is, 6. What should I do? The value of a will never repeat, but b may repeat

Aug.13,2021

list.find(item => item.a === 5).b
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-1e432d7-26f4f.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-1e432d7-26f4f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?