let styleLink = {};
Object.assign(styleLink, [style, styleInlineLink]);

I believe this JavaScript code results in styleLink being an object that has all the fields of style combined with all the fields of styleInlineLink. In testing it's as if this is not the case. Am I missing something?

EDIT: Correct syntax is Object.assign(styleLink, style, styleInlineLink);

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mcc/statuses/115583594842904769 on your instance and quote it. (Note that quoting is not supported in Mastodon.)