Skip to content

Instantly share code, notes, and snippets.

@oleersoy
Created November 16, 2019 06:29
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 oleersoy/80cac8f857a2a9f9d64221417696ac65 to your computer and use it in GitHub Desktop.
Save oleersoy/80cac8f857a2a9f9d64221417696ac65 to your computer and use it in GitHub Desktop.
const isActiveTodoInCollection$:Observable<boolean> =
combineLatest(active$,
collection$,
(a, c)=>{
if (getMapValue(central.active)) {
return collection.containsById(getMapValue(central.active));
}
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment