UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

15 lines (13 loc) 259 B
function compareByTime(a, b) { if (a.at === b.at) { if (a.value === null) return 1; if (b.value === null) return -1; return 0; } else { return a.at - b.at; } } export { compareByTime };