src/app/shared/pipes/round.pipe.ts
Name | round |
transform |
transform(value: any, precision: number)
|
Defined in src/app/shared/pipes/round.pipe.ts:9
|
Returns :
any
|
import { Pipe, PipeTransform } from '@angular/core';
import * as _ from 'lodash';
@Pipe({
name: 'round'
})
export class RoundPipe implements PipeTransform {
transform(value: any, precision: number): any {
return _.round(value, precision);
}
}