Task table sorting fails on Internet Explorer versions older than 12

Issue #742 resolved
David Platten created an issue

The JavaScript method String.prototype.includes does not exist in Internet Explorer prior to version 12:

https://stackoverflow.com/questions/36574351/includes-not-working-in-internet-explorer

I think it can be replaced with String.prototype.indexOf:

"A test string".includes("est");

can be replaced (with a little modification to the logic) with:

"A test string".indexOf("est");

.includes() returns a Boolean result .indexOf() returns -1 if the string is absent, or the character index of its position; logic needs to test for -1 rather than Boolean false.

Comments (2)

  1. Log in to comment