JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › s.startsWith is not a function – Angular Kanban › Reply To: s.startsWith is not a function – Angular Kanban
Hi Peter,
This issue is happening because of one js file used by us.
I feel this should not happen in any case.
Our own js file is something like this,
Array.prototype.collect = function(functor) {
var result = [];
for (var i = 0; i < this.length; ++i) {
var item = this[i];
result.push(functor(item));
}
return result;
};
if (typeof Array.prototype.forEach != ‘function’) {
Array.prototype.forEach = function (callback) {
for (var i = 0; i < this.length; i++) {
if (this[i]) {
callback.apply(this, [this[i], i, this]);
}
}
};
}
In order for Kanban to work, I had to remove this reference from the page.