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

jdalton opened this Issue Sep 2, 2012 · 0 comments

2 participants


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);
@jashkenas jashkenas closed this in ab31329 Sep 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment