blob: 077831ac296628096dbe2782f254e6e703bea89b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { Pipe, PipeTransform } from '@angular/core';
import _ from 'lodash';
@Pipe({
name: 'round'
})
export class RoundPipe implements PipeTransform {
transform(value: any, precision: number): any {
return _.round(value, precision);
}
}
|