Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save arifshaikh-official/27990bae1c6aa577eebc673d8914554e to your computer and use it in GitHub Desktop.

Select an option

Save arifshaikh-official/27990bae1c6aa577eebc673d8914554e to your computer and use it in GitHub Desktop.
Typescript
@Pipe({ name: 'exponentialStrength' })
export class ExponentialStrengthPipe implements PipeTransform {
transform(value: number, exponent: number): number {
return Math.pow(value, exponent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment