insight-previous-tcr
Version:
A blockchain explorer for Bitcore
15 lines (13 loc) • 327 B
text/typescript
import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: 'split'
})
export class SplitPipe implements PipeTransform {
/**
* Takes a value and makes it lowercase.
*/
public transform(value: string, delimiter: string): string[] {
const array: string[] = value.split(delimiter);
return array;
}
}