Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

The duck type for _.isElement should use strict equality #734

Closed
jdalton opened this Issue · 0 comments

2 participants

John-David Dalton Jeremy Ashkenas
John-David Dalton

The _.isElement check is a pretty weak inference, it could be made stronger by using === instead of ==.

  _.isElement = function(obj) {
    return !!(obj && obj.nodeType === 1);
  };
Jeremy Ashkenas jashkenas closed this in ab31329
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.