index.js
function Name(name, action, val) {
  this.type = 'Name'
  this.name = name
  this.action = action
  this.value = val
}
function Name(name, action, val) {
  this.type = 'Name'
  this.name = name
  this.action = action
  this.value = val
}
Name operation