Closed nicojs closed 8 months ago
Use a Map instead of an array, so we don't need to delete from the array, instead we can use map.delete.
Map
delete
map.delete
See https://typescript-eslint.io/rules/no-array-delete/ on why it's a bad practice.
Use a
Map
instead of an array, so we don't need todelete
from the array, instead we can usemap.delete
.See https://typescript-eslint.io/rules/no-array-delete/ on why it's a bad practice.