pbeshai / tidy

Tidy up your data with JavaScript, inspired by dplyr and the tidyverse
https://pbeshai.github.io/tidy
MIT License
725 stars 21 forks source link

bug: first() and last() fail when there are no items #16

Closed pbeshai closed 3 years ago

pbeshai commented 3 years ago

first() and last() try running on an undefined element when there are no items, so they should be updated to just return undefined in that case.