const search = getValue("search"); toArrayStaff = toArrayStaff.filter(element => Object.values(element.full_names).includes(search));