pbeshai / tidy

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

Bug: select() fails when no keys are selected #11

Closed pbeshai closed 3 years ago

pbeshai commented 3 years ago

Currently if you do select([]) or select([contains('foo')]) and contains returns no results, an error occurs. Instead, let's just have select do nothing if no keys are passed – the input data is output untouched.