github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/util/timerange.ts (about) 1 /** 2 * Create an interval that's the largest possible, given a list of intervals 3 */ 4 export function createBiggestInterval({ 5 from, 6 until, 7 }: { 8 from: number[]; 9 until: number[]; 10 }) { 11 return { 12 from: Math.min(...from), 13 until: Math.max(...until), 14 }; 15 }