{"size": 321, "ext": "js", "max_stars_repo_path": "DataStructureBase/Queue.js", "max_stars_repo_name": "angiechangpagne/AlgoEtro", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "DataStructureBase/Queue.js", "max_issues_repo_name": "angiechangpagne/AlgoEtro", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "DataStructureBase/Queue.js", "max_forks_repo_name": "angiechangpagne/AlgoEtro", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.05, "max_line_length": 51, "alphanum_fraction": 0.6417445483}
function Queue(){
  this.storage = [];
  this.index = 0;
}

Queue.prototype.enqueue = function(value){
  this.storage[this.index++] = value;
  return;
};


Queue.prototype.dequeue = function(){
  if(this.storage === undefined || this.index===0){
    return;
  }
  return this.storage.shift();
};


module.exports = Queue;