Given the new 'Symbol' primitive in ES6, is it possible to modify/set the behavior of a for...of loop in an object?
I'm creating a little utility for 'deep extracting' values from an 'iterable' (which I define for my purposes as an Object, Array, Map or Set).
Array, Map and Set make use of for..of loops, however plain objects do not. For consistency, I'd like objects to make use of this loop (and should iterate over values rather than properties (as for...in allows you to do)).
Can this be done?