Rubyfill
A collection of Ruby like polyfills
Designed to make your javascript programming life happier
View All Methods
Installation
npm install --save legit-rubyfill
Including the library
Example
Remove all undefined, null, or empty strings from an array
1 2 undefined 3 "" null 4compact-> 1 2 3 4