Skip to content

Instantly share code, notes, and snippets.

@manivelarjunan
Created December 2, 2018 22:44
Show Gist options
  • Save manivelarjunan/1e23f154c2d5bc3f4276cdf2036c8e8b to your computer and use it in GitHub Desktop.
Save manivelarjunan/1e23f154c2d5bc3f4276cdf2036c8e8b to your computer and use it in GitHub Desktop.
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