chore: Update developer/src/kmc-ldml/src/compiler/visual-keyboard-compiler.ts

This commit is contained in:
Marc Durdin 2024-08-26 09:09:00 +02:00 committed by GitHub
parent d028124ca9
commit 6353f926ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ import { KeysCompiler } from "./keys.js";
import { LdmlCompilerMessages } from "./ldml-compiler-messages.js";
// This is a partial polyfill for findLast, so not polluting Array.prototype
//
// https://medium.com/@stheodorejohn/findlast-method-polyfill-in-javascript-bridging-browser-gaps-c3baf6aabae1
// TODO: remove and replace with Array.prototype.findLast when it is
// well-supported
function findLast(arr: any, callback: any) {