Skip to content

Instantly share code, notes, and snippets.

@GeorgianStan
Last active May 5, 2020 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeorgianStan/2e9e88e59a2f8d33929391fc6b59fdfb to your computer and use it in GitHub Desktop.
Save GeorgianStan/2e9e88e59a2f8d33929391fc6b59fdfb to your computer and use it in GitHub Desktop.
Get selected options
this.notifications = this.notifications.filter(
(notification) => !idOfSelectedNotifications.includes(notification._id)
);
const idOfSelectedNotifications: string[] = this.notificationList.selectedOptions.selected.map(
(e: any) => e.value
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment