accept() accept() : boolean Returns boolean — true if the current element is acceptable, otherwise false.