Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fn: () => getTimeDistance('today'),
}, fn: () => getTimeDistance('yesterday'),
},setDate(type: any) {
const rank = getTimeDistance(type);
this.q.start = rank[0];
this.q.end = rank[1];
} fn: () => getTimeDistance('week'),
},setDate(type: any) {
const rank = getTimeDistance(type);
this.q.start = rank[0];
this.q.end = rank[1];
} fn: () => getTimeDistance(-2),
}, fn: () => getTimeDistance('month'),
}, fn: () => getTimeDistance('year'),
},