How to use the push function from methods

Find comprehensive JavaScript methods.push code examples handpicked from public code repositorys.

76
77
78
79
80
81
82
83
84
85
86
87
Route.prototype._options = function _options() {
  var methods = Object.keys(this.methods);


  // append automatic head
  if (this.methods.get && !this.methods.head) {
    methods.push('head');
  }


  for (var i = 0; i < methods.length; i++) {
    // make upper case
fork icon0
star icon1
watch icon1