Skip to content

Instantly share code, notes, and snippets.

@andresgallo
Last active May 15, 2024 19:20
Show Gist options
  • Save andresgallo/6f50295ba763120da78d07f45673ddfb to your computer and use it in GitHub Desktop.
Save andresgallo/6f50295ba763120da78d07f45673ddfb to your computer and use it in GitHub Desktop.
const END_TIME_INRANGE = (
individual.endTime >= available.startTime ||
individual.endTime <= available.endTime
)
const START_TIME_INRANGE = (
individual.startTimeTime >= available.startTime ||
individual.startTimeTime <= available.endTime
)
if (START_TIME_INRANGE || END_TIME_INRANGE) {
// send broadcastStreamItem|instance to JSON
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment