JavaScript-da siz Array.filter() usuli yordamida obyektlar massasini filtrlashingiz mumkin. Ushbu usul taqdim etilgan funksiya tomonidan amalga oshirilgan testni o'tkazib yuborgan barcha elementlar bilan yangi massiv yaratadi. Mana misol: ``` const people = [ { name: 'Alice', age: 30 }, { name: 'Bob', age: 25 }, { name: 'Charlie', age: 35 }, { name: 'David', age: 40 } ]; // Filter people whose age is greater than or equal to 35 const filtered People = people.filterperson => person.age >= 35); console.log(filteredPeople); // [{ name: 'Charlie', age: 35 }, { name: 'David', age: 40 }] ``` Yuqoridagi misolda bizda nom va yosh xususiyatlari bilan obyektlar mas
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence