UNPKG

motion

Version:

The Motion library for the web

11 lines (9 loc) 178 B
function compareByTime(a, b) { if (a.at === b.at) { return a.value === null ? 1 : -1; } else { return a.at - b.at; } } export { compareByTime };