I have this code:
for (var i = 0; i < value.length; i++) {
if (typeof value[i].keyword == 'undefined' || value[i].keyword == null || value[i].keyword.startsWith(keyword)) {
out.push(value[i]);
}
}
I am getting an error message saying:
> TypeError: r[e].startsWith is not a function > at js-cf2cc68….min.js.gz:85 > at fn (eval at compile (js-cf2cc68….min.js.gz:8), <anonymous>:4:1003) > at js-cf2cc68….min.js.gz:7 > at p.$digest (js-cf2cc68….min.js.gz:7) > at p.$apply (js-cf2cc68….min.js.gz:7) > at HTMLBodyElement.<anonymous> (js-cf2cc68….min.js.gz:9)
How is this possible? I think I've accounted for everything.