import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'join' } ) export class JoinPipe implements PipeTransform { transform ( value , separator ) { if ( ! Array . isArray ( value ) ) return value ; return value . join ( separator ) ; } }