JSFiddle - React, Tailwind, and code Playground
by Ace Tributon
JavaScript
(
(
//deconstructing dependencies
{round,floor,ceil}=Math,
{parse,stringify}=JSON,
{log}=console,
//testing a returning method function
$=(host='')=>({
add(newest){return (host+=newest,$(host));},
log(){return (log(host),$(host));},
defaulted($host){return (host=$host, $(host));}
}),
//deconstruct a known value in a jquery thing
{add,log:logs,defaulted}=$()
)=>
(
$("boop").add(" a doop").log(),
//so this is rediculous
(defaulted("ree")
.log()
.add(" says its not fair")
.log()
.defaulted("timmy")
.add(" says this is a headache")
.log()
)
)
)();