Fill properly tiles on export

This commit is contained in:
2023-08-23 16:07:21 +02:00
parent 26dceaba06
commit 17a2cd156d
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,8 @@
export function getAllIndexes(s: string, val: string) {
var indexes = [],
i = -1;
while ((i = s.indexOf(val, i + 1)) !== -1) {
indexes.push(i);
}
return indexes;
}