Skip to content

Documentation of .not() overloads is unclear #452

Closed
@stijnherreman

Description

@stijnherreman

There are four overloads listed.

.not( selector )
selector
Type: Selector
A string containing a selector expression to match elements against.

The description is incorrect. A Selector can be a String, an Element or a List of Elements (I guess this refers to a NodeList?)

.not( elements )
elements
Type: Elements
One or more DOM elements to remove from the matched set.

This one is implied by the first one, if the description is corrected.

.not( function(index) )
function(index)
Type: Function()
A function used as a test for each element in the set. this is the current DOM element.

This one is missing an example. I'm guessing the function needs to return a boolean value?

.not( jQuery object )
jQuery object
Type: PlainObject
An existing jQuery object to match the current set of elements against.

Which is it, a jQuery object or a PlainObject?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions