repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git]
/
packages
/
utils
/
removeIndex.ts
blob
03e21ad30d7c44fe60de5bd93ccada2ebd3f4c96
1
/**
2
* Removes item at "index" from "array"
3
*/
4
const removeIndex = <T>(array: T[], index: number) => array.filter((_, i) => i !== index);
5
6
export default removeIndex;