I get an object:
const foo = {}
And void this object like foo.div.h2.span
how in this object I could catch void parameters? It should be like: object foo voided with div>h2>span
parameters?
a little bit more examples:
Format.div("fqe");
// should returns "<div>fqe</div>"
Format.div.h1.span("FizBuz");
should returns // "<div><h1><span>FizBuz</span></h1></div>"
So, I need to catch in object with which parameters he was called