Array every method with funtion
const userproduct = [
{
id :1,
product : 'product1',
price: 12000
},
{
id :2,
product : 'product2',
price: 14000
},
{
id :3,
product : 'product3',
price: 15000
}
]
const checkprice = userproduct?.every((item)=>item?.price < 30000)
console.log("Hello, World!--->",checkprice);