Replace
myfunc($tab, {'top-left', 'bottom-left'}, defaults.tabRounded);
WITH
myfunc($tab, ['top-left', 'bottom-left'], defaults.tabRounded);
{'top-left', 'bottom-left'}not an object, but {'top-left': 0, 'bottom-left': 10}an object. I suggested that you might need an array instead of an object.
source
share