how to create an array with both members and number of members undefined