Nutritious Pumpkin Meal

    legit-rubyfill

    0.0.7 • Public • Published

    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

    import 'legit-rubyfill' //whole library
    import 'legit-rubyfill/array' //all array methods
    import 'legit-rubyfill/string'
    import 'legit-rubyfill/array/compact' //single method

    Example

    Remove all undefined, null, or empty strings from an array

    [1, 2, undefined, 3, "", null, 4].compact
    -> [1, 2, 3, 4]

    Keywords

    none

    Install

    npm i legit-rubyfill

    DownloadsWeekly Downloads

    5

    Version

    0.0.7

    License

    ISC

    Last publish

    Collaborators

    • dphaener
    • zackify