Last active
August 23, 2021 04:03
-
-
Save dSalieri/13688ad704e35b1c69c1699091c2bda6 to your computer and use it in GitHub Desktop.
Returns true/false if object has iterator in prototype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasPrototypeIterator(o){ | |
return o != null ? Object.hasOwnProperty.call(Object.getPrototypeOf(o), Symbol.iterator) : null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment