[Solved] TypeError: employee.includes is not a function [duplicate]


includes check if parameter is contained on Array. You filter should look like this

result.filter(employee => employee.area && employee.area.name === 'Vibestuen')

0

solved TypeError: employee.includes is not a function [duplicate]