Are you bothered by the
Is its presence in code irksome?
Does reading it set off an internal monologue about how presumptuous this glorified factory function is, insisting its hallowed summoning be heralded with a claim of needing something heretofore unseen?
I thought so.
This module wraps the call to all native
Set, etc in the browser, node, or a web worker) to internally do it for you so you never have to use the keyword again, and can invoke them like any other factory function.
so instead of
var s =
it can just be
var s = Set
Except for classes, because you make those, and there's currently not way to globally proxy all class creation. Though if you don't like
new you probably don't use classes. Also someone already made a thing for that.
Does this break invocations that already use
None that I've found so far:
var x=Setvar y= //no errorvar z= //no errorxy //no errorz //no error var d=Datevar e= //no errorvar f= //no errordgetTime //[Function: getTime]egetTime //[Function: getTime]fgetTime //[Function: getTime] //etc
Though...I guess if you're someone who says:
var x= //without the (), which is valid but weird
you cannot now just say:
you still have to execute it: