(
value: ReadonlyArray<T> | string | null | undefined,
start: number,
end?: number,
)
| 77 | transform(value: string, start: number, end?: number): string; |
| 78 | transform(value: string | null | undefined, start: number, end?: number): string | null; |
| 79 | transform<T>( |
| 80 | value: ReadonlyArray<T> | string | null | undefined, |
| 81 | start: number, |
| 82 | end?: number, |
| 83 | ): Array<T> | string | null { |
| 84 | if (value == null) return null; |
| 85 | |
| 86 | const supports = typeof value === 'string' || Array.isArray(value); |
| 87 | |
| 88 | if (!supports) { |
| 89 | throw invalidPipeArgumentError(SlicePipe, value); |
| 90 | } |
| 91 | |
| 92 | return value.slice(start, end); |
| 93 | } |
| 94 | } |
nothing calls this directly
no test coverage detected