Skip to content

Conversation

coosigma
Copy link

Shorter (5 lines to 2 lines), Clearer( logic: return the first element or a slice of the array), Less time ("slice()") and Less memory ( first: array -> n: number)

Shorter (5 lines to 2 lines), Clearer( logic: return the first element or a slice of the array), Less time ("slice()") and Less memory ( first: array -> n: number)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant