UNPKG

ng2-pipes

Version:
11 lines (8 loc) 249 B
import {PipeTransform, Pipe, Injectable} from '@angular/core'; @Injectable() @Pipe({name: 'isIdenticalTo'}) export class IsIdenticalToPipe implements PipeTransform { transform(value: any, other: any): boolean { return value === other; } }