DEV Community

Discussion on: Re-implementing jQuery methods in the HTMLElement prototype

Collapse
 
ajnasz profile image
Lajos Koszti

elmenet.attr('min', 0) will return the attribute value.

better check arguments.length