Match iframe partial class to an string of codes

So I'm not too sure on how to properly execute this, so I wanted to ask the community.

I know about matching an array of things, but how would I be able to do the following:

I have these two outputs:


This outputs me:

enter image description here

What would be the best way to determine if target[0].className with is optanon-category-C0003 has a match inside window.OnetrustActiveGroups?

All help is appreciated!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum