Jquery Select2 plugin version check
<p>In my project I check if the Select2 plugin was loaded in this way</p>

<pre><code>if (jQuery().select2)
</code></pre>

<p>But now I will try to verify what kind of version (3.5.X or 4.X) of Select2 plugin was loaded. I thought maybe you could check if there is an option/function introduced in version 4.X that is not present in the version 3.5.X.
According to you, is it doable? How might I do it? Thank you</p>