github.com/grafana/pyroscope@v1.18.0/public/app/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 }