const isAllUnique = (...args) => new Set(args).size === args.length;
console.log(isAllUnique(69, 187, 666)); // true
console.log(isAllUnique(2, 2, 3, 4)); // false
console.log(isAllUnique(...'ABCDA')) // false
var slider = $(sliderSelector);
var preview_slider = $(sliderPreviewSelector);
slider.owlCarousel({
items: 1,
nav: false,
dots: false,
loop: false,
onChanged: callback
});
function callback(e) {
var index = e.item.index;
preview_slider.removeClass('active').eq(index).addClass('active');
}
slide_preview.click(function () {
var index = $(this).index();
slider.trigger("to.owl.carousel", [index, 300, true]);
});