Skip to content

Instantly share code, notes, and snippets.

@HaruKawamata
Last active February 11, 2022 04:54
Show Gist options
  • Save HaruKawamata/7d54abc3932686da525b84e2bec24b92 to your computer and use it in GitHub Desktop.
Save HaruKawamata/7d54abc3932686da525b84e2bec24b92 to your computer and use it in GitHub Desktop.
schedules.filter(
(sched) => schedules.none(
(sched_to_compare) => sched.id !== sched_to_compare.id &&
(sched.start == sched_to_compare.finish || sched.finish == sched_to_compare.start)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment