How in JQuery to check whether the item is the last one?

Select the first or the last element of the sample in JQuery is possible. How to check whether the item is the last true or false same method .first() does not return.
July 2nd 19 at 17:14
1 answer
July 2nd 19 at 17:16
Solution
$('#element').is(':last-child')

Find more questions by tags jQueryJavaScript