index.js
function generateFeatures() {
  var collection = {
    type: 'FeatureCollection',
    features: []
  };

  for (var i = 0; i < options.number; i++) {
    collection.features.push(generateFeature(randomType()));
  }
  return collection;
}
function generateFeatures() {
  var collection = {
    type: 'FeatureCollection',
    features: []
  };

  for (var i = 0; i < options.number; i++) {
    collection.features.push(generateFeature(randomType()));
  }
  return collection;
}
function generateFeatures ( ) { var collection = { type : 'FeatureCollection' , features : [ ] } ; for ( var i = 0 ; i < options . number ; i ++ ) { collection . features . push ( generateFeature ( randomType ( ) ) ) ; } return collection ; }
Creates a FeatureCollection and adds features
@return {Object} GeoJSON FeatureCollection
Creates a FeatureCollection and adds features