arr.filter(x =>
x.gender === 2 &&
x.maritalStatus === 0 &&
x.NumberOfCourses === 0 &&
(x.age >= 25 && x.age <= 30)
)
// (2) [{…}, {…}]
const newArray = users.filter(user => {
return maritalStatus === 0 && age >= 25 && age <= 30 && NumberOfCourses === 0 && presence === 1
})