Remove duplicate options from HTML Select

Some times you get the options from database by ajax duplicated.
The following JavaScript function should do the trick.
You need JQuery to make it work.

dropdown_remove_repeated: function () {
        var $selects = $('select');
        $selects.each(function () {
            var $select = $(this);

            var $options = $select.find('option');

            $options.each(function () {
                var $option = $(this);
                $option.siblings().each(function () {
                    var $this = $(this);
                    if ($this.text().trim() === $option.text().trim()) {
                        $this.remove();
                    }
                });
            });
        });
    }

filter attribute that checks whether current connection is secured

using APS.net Core to mark all website pages working with https protocol we will do this using IAuthorizationFilter. and here is an exampl...