how to add titile case pipe to unknow type variab;e code example
Example: angular pipe to capitalize first letter
transform(value:string): string {
let first = value.substr(0,1).toUpperCase();
return first + value.substr(1);
}
transform(value:string): string {
let first = value.substr(0,1).toUpperCase();
return first + value.substr(1);
}