JSFiddle - React, Tailwind, and code Playground

by Nicholas Berlette

JavaScript

const Params = /** @class */ (function () {
    function Params() {
        const init = [];
        for (let _i = 0; _i < arguments.length; _i++) {
            init[_i] = arguments[_i];
        }
        this._params = init;
        
      return new.target === Params ? this : (new Params(arguments))();
    }
    
	return Params; // : Params.prototype;
}());

/* const ppp = new Params(1, 2, 3); */

/* console.log(ppp); */

const pppp = Params(1, 2, 3);

console.log(pppp)