Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

232 B
Raw Blame
import { Pipe, PipeTransform } from '@angular/core'

@Pipe({
  name: 'isNumber',
})
export class IsNumberPipe implements PipeTransform {
  transform(value: any): boolean {
    return typeof value === 'number' && !isNaN(value)
  }
}