JSFiddle - React, Tailwind, and code Playground

by anup1986

HTML

<button style="button" id="click">Click</button>

<table>
    <tr>
        <td>
<select id="list1">
    <option></option>
</select>
        </td>
    </tr>
    <tr>
        <td>
<select id="list2">
    <option></option>
        </select>
        </td>
    </tr>
</table>

JavaScript

Enumerable = function() {
    var m = "Single:sequence contains more than one element.",
        e = true,
        b = null,
        a = false,
        c = function(a) {
            this.GetEnumerator = a
        };
    c.Choice = function() {
        var a = arguments[0] instanceof Array ? arguments[0] : arguments;
        return new c(function() {
            return new f(g.Blank, function() {
                return this.Yield(a[Math.floor(Math.random() * a.length)])
            }, g.Blank)
        })
    };
    c.Cycle = function() {
        var a = arguments[0] instanceof Array ? arguments[0] : arguments;
        return new c(function() {
            var b = 0;
            return new f(g.Blank, function() {
                if (b >= a.length) b = 0;
                return this.Yield(a[b++])
            }, g.Blank)
        })
    };
    c.Empty = function() {
        return new c(function() {
            return new f(g.Blank, function() {
                return a
            }, g.Blank)
        })
    };
    c.From = function(j) {
        if (j == b) return c.Empty();
        if (j instanceof c) return j;
        if (typeof j == i.Number || typeof j == i.Boolean) return c.Repeat(j, 1);
        if (typeof j == i.String) return new c(function() {
            var b = 0;
            return new f(g.Blank, function() {
                return b < j.length ? this.Yield(j.charAt(b++)) : a
            }, g.Blank)
        });
        if (typeof j != i.Function) {
            if (typeof j.length == i.Number) return new h(j);
            if (!(j instanceof Object) && d.IsIEnumerable(j)) return new c(function() {
                var c = e,
                    b;
                return new f(function() {
                    b = new Enumerator(j)
                }, function() {
                    if (c) c = a;
                    else b.moveNext();
                    return b.atEnd() ? a : this.Yield(b.item())
                }, g.Blank)
            })
        }
       ...