Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 333 Bytes
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'tail' })
export class TailPipe implements PipeTransform {
transform(input: any[], num?: number): any[];
transform<T>(input: T, num?: number): T;
transform(input: any, num: number = 0): any {
return Array.isArray(input) ? input.slice(num) : input;
}
}
You can’t perform that action at this time.