isEqual
Return true if the selected element matches with the provided one.
Usage
$(selector).isEqual(el)
Parameters
Name | Type | Details |
---|---|---|
el | Element | element to compare with |
Example
it('should detect if an element is clickable', () => {
const el = $('#el')
const sameEl = $('#el')
const anotherEl = $('#anotherEl')
el.isEqual(sameEl) // outputs: true
el.isEqual(anotherEl) // outputs: false
});