I have to break the forEach method when the value of available is true.
[
{
"Book": "Book1",
"available": false
},
{
"Book": "Book2",
"available": false
},
{
"Book": "Book3",
"available": true
},
{
"Book": "Book4",
"available": true
}
]
And print only one item after the value of available comes true.