Что выведет userService1.filtered()
const userService1 = {
users: [
{ name: "Ivan1", status: "active" },
{ name: "Igor", status: "disactive" },
],
status: "active",
filtered: function () {
return this.users.filter(function (user) {
return user.status === this.status;
});
},
};
userService1.filtered();