Yields every item in sortedEvents that has the specified start value
sortedEvents
start
Return item is a wrapped object consisting of the event as well as its index.
const events = [ { start: 1, end: 2}, { start: 5, end: 10 }, { start: 10, end: 12 }];const matched = [...itemsWithStart(events, 5)];// matched is [{ event: { start: 5, end: 10 }, index: 1 }] Copy
const events = [ { start: 1, end: 2}, { start: 5, end: 10 }, { start: 10, end: 12 }];const matched = [...itemsWithStart(events, 5)];// matched is [{ event: { start: 5, end: 10 }, index: 1 }]
Sorted events
Start position
Yields every item in
sortedEventsthat has the specifiedstartvalueReturn item is a wrapped object consisting of the event as well as its index.