Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 318 Bytes
import { Pipe, PipeTransform } from '@angular/core';
import { isNumberFinite } from '../utils/utils';
name: 'sqrt'
export class SqrtPipe implements PipeTransform {
transform (input: any): any {
if (!isNumberFinite(input)) {
return 'NaN';
return Math.sqrt(input);
You can’t perform that action at this time.