aleksanderwalczuk/CC-Project-2

Set default value to param attributes in elementFactory function

DominikNowak opened this issue · 0 comments

To avoid need of typing a blank object to argument when you want create only tag, without any attributes or children.

Now:
elementFactory('div', {});
After:
elementFactory('div');