Core: Make jQuery objects iterable
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
Showing
Please register or sign in to comment