Last active
April 26, 2021 19:00
-
-
Save dsebastien/421ec2f73a32e0a845cd1c2a87053d70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function removeLastElement <T>(elements: T[]): T[] { | |
return elements.slice(0, elements.length -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment