update(...args) {
    let name
    let data
    let options

    if (typeof args[0] === 'string') {
      name = args[0]
      data = args[1]
      options = args[2]
    } else {
      data = args[0]
      options = args[1]
      name = null
    }

    if (name) {
      this.updateOne(this.get(name), data, options)
    } else {
      for (let index = 0; index < this.index.length; index++) {
        this.updateOne(this.index[index], data, options)
      }
    }
  }
Update the function values with a new data.