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