Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 309 Bytes
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({ name: 'every' })
export class EveryPipe implements PipeTransform {
transform(input: any, predicate: (value: any, index: number, array: any[]) => boolean): boolean | any[] {
return Array.isArray(input) ? input.every(predicate) : false;
You can’t perform that action at this time.