Search bar system

PHOTO EMBED

Tue Jan 23 2024 11:22:58 GMT+0000 (Coordinated Universal Time)

Saved by @Paloma #js

function search() {
  matchingMembers.value = props.story.content.members.filter((member) => {
    return (
      member.tags.some((tag) => {
        return tag.text.toLowerCase().includes(query.value.toLowerCase());
      }) ||
      member.name.toLowerCase().includes(query.value.toLowerCase()) ||
      member.role.toLowerCase().includes(query.value.toLowerCase()) ||
      member.description.toLowerCase().includes(query.value.toLowerCase()) ||
      member.desk.toLowerCase().includes(query.value.toLowerCase())
    );
  });
}
content_copyCOPY