@anglr/grid
Version:
Angular module displaying grid
21 lines • 989 B
JavaScript
import { Pipe } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Transforms NaN value into inifinity symbol
*/
export class InfinityNaNPipe {
/**
* Transforms NaN value into inifinity symbol
* @param value - Numeric value to be checked and transformed
*/
transform(value) {
return isNaN(value) ? '∞' : value.toString();
}
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: InfinityNaNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.0", ngImport: i0, type: InfinityNaNPipe, isStandalone: true, name: "infinityNaN" }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0", ngImport: i0, type: InfinityNaNPipe, decorators: [{
type: Pipe,
args: [{ name: 'infinityNaN' }]
}] });
//# sourceMappingURL=infinityNaN.pipe.js.map