Chore: Replace deprecated String.prototype.substr() (#46763)

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot
2022-04-04 11:08:06 +02:00
committed by GitHub
parent ed140906de
commit d29b8e8858
25 changed files with 37 additions and 37 deletions
@@ -84,7 +84,7 @@ export const getTimeZoneGroups = memoize(
return groups;
}
const group = zone.substr(0, delimiter);
const group = zone.slice(0, delimiter);
groups[group] = groups[group] ?? [];
groups[group].push(zone);