Since it's an jQuery collection, you can execute .map
directly and then use .get
so that it becomes an array.
var values = obj.map(function(){
return this.value ? this.value : null;
}).get();
Note: The above check will return any value that isn't falsey.