Fill properly tiles on export
This commit is contained in:
8
geneit_app/src/utils/string_utils.ts
Normal file
8
geneit_app/src/utils/string_utils.ts
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user