julesfern / spahql

A query language for Javascript data. Extracted from Spah.
MIT License
325 stars 20 forks source link

each and map bugs #18

Open dubiousdavid opened 11 years ago

dubiousdavid commented 11 years ago

The functions "each" and "map" have the element value for the "thisArg" parameter. That should be null and element value should be the first element in the list. Or better yet just call the function without using apply, as it isn't necessary in these scenarios.

dubiousdavid commented 11 years ago

I see what you're doing now. This seems strange to me, but that might be a result of my functional programming background.