How to remove button Slick-slider?

How to use this function to remove the next button on the last slide?
$('.your-element').on('beforeChange', function(event, slick, currentSlide, nextSlide){
console.log(nextSlide);
});
March 20th 20 at 11:36
1 answer
March 20th 20 at 11:38
Solution
Good afternoon.
Use
$('.slider').slick({
infinite: false,
});
the CSS property style
.slick-disabled {
opacity: 0;
pointer-events:none;
}
Thank you very much, what you need! - Graham.Bernhard commented on March 20th 20 at 11:41

Find more questions by tags jQuery