russplaysguitar / UnderscoreCF

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

Parse lists with empty values #16

Closed russplaysguitar closed 11 years ago

russplaysguitar commented 11 years ago

Currently, empty values in a list will not be represented in the array returned from _.toArray(). This should be corrected.

For example, _.toArray("1,2,,4") returns [1, 2, 4] It should return [1, 2, null, 4] instead.

See: http://matthewbusche.com/blog/index.cfm/2012/12/4/Using-ColdFusion-to-parse-a-list-with-empty-values