Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

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

@Pipe({ name: 'split' })
export class SplitPipe implements PipeTransform {
  transform(input: string, separator = ','): string[] {
    if (!input?.length) {
      return []
    }
    return input.split(separator)
  }
}