mediawiki.special.apisandbox: Fix code for ES5 environments (IE 11)
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 23 Nov 2018 19:45:19 +0000 (20:45 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 23 Nov 2018 19:47:58 +0000 (20:47 +0100)
commit39c0d4d01671adbe1e3b9ee9ac59132f6e1d567a
tree307a53953cb1b2fe5acac02d886aa5375ea32e04
parentcda77ab8c4d4b721f1ed1c501eba7aebd0e830ff
mediawiki.special.apisandbox: Fix code for ES5 environments (IE 11)

The method Array#findIndex was introduced in ES6 [1] and we still
support browsers that only implement ES5, like Internet Explorer 11.

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex#Specifications

Change-Id: Idaebef7c91f2683099ab4980833ed76f0e3b51eb
resources/src/mediawiki.special.apisandbox/apisandbox.js