Created
December 2, 2018 22:44
-
-
Save manivelarjunan/1e23f154c2d5bc3f4276cdf2036c8e8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'reversePipe' | |
}) | |
export class ReversePipe implements PipeTransform { | |
transform(value: any, args?: any): any { | |
return value | |
.split('') | |
.reverse() | |
.join(''); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment