russplaysguitar / UnderscoreCF

An UnderscoreJS port for Coldfusion. Functional programming library.
http://russplaysguitar.github.com/UnderscoreCF/
MIT License
89 stars 38 forks source link

Make toQuery(arrayOfStructs) handle variable-size structs #24

Closed russplaysguitar closed 11 years ago

russplaysguitar commented 11 years ago

It would be nice if this worked:

_.toQuery([{a: 'a'}, {b: 'b'}]);

I would expect it to return a query with the following data:

| a | b |
---------
| a |   |
|   | b |

It would be nice if the empty slots were some kind of null, but an empty string may also be acceptable?