I am using Angular 5.
In my component, I check if value is equal to "DATE".
isDateColumn(columnName: string){
this.configData.some((el) => {
if (columnName == el.key.columnName){
console.log("FOUND: " + el.dataType + " For " + columnName);
return el.dataType === "DATE";
}
})
return false;
}
In my console, I found something like below:
FOUND: DATE For CLIENT_START_DT
But this function still returns me false.
Why is it so?