I want to get the options set to a select2 instance, in specific if the allowClear option is set to true or false.
Navigating through the object I found the allowClear option in
jQuery... -> select2 -> options -> options,
This is how to list all of the options set to a select2 instance
$(selector).data('select2').options.options
I needed the allowClear option so the answer to my question would be this
$element.data('select2').options.options.allowClear