• Michał Gołębiowski's avatar
    Core: Make jQuery objects iterable · 2fa3bac7
    Michał Gołębiowski authored
    Make iterating over jQuery objects possible using ES 2015 for-of:
    
        for ( node of $( "<div id=narwhal>" ) ) {
            console.log( node.id ); // "narwhal"
        }
    
    (partially cherry-picked from bb026fc12c3c2ad37f47f0919e484bddcdc3d291)
    
    Fixes gh-1693
    2fa3bac7
core.js 12.1 KB