JSFiddle - React, Tailwind, and code Playground

by swoogie

JavaScript

_.mixin({
    //If you would like to know how these functions word, read the docs.
    isSet: function (e) {
        return (_.isArray(e) && (_.filter(e, function (x) {

            return (x[0] !== "")

        }).length > 0)) || (_.isString(e) && e.length > 0);
    }});


var x = _.chain(m).filter(_.isSet).map(function (v, i) {
    if (v == '') return;
    return [('v' + (i + 1)), v];
}).value();
x =  _.toQueryString(x);
console.log(x);
}(["", "hi", ""]));