code: function (subpath, options) {
        var args = Util.resolveArgs(
          arguments,
          function (x) { return Util.canRepresentSubpath(x) ? 'subpath' : null; }, '?options'
        );
  
        var pathAsArray = args.subpath ? Binding.asArrayPath(args.subpath) : [];
  
        var tx = this.getBinding().atomically();
        tx.set(pathAsArray, this._initialState.getIn(pathAsArray));
  
        var effectiveOptions = args.options || {};
        if (effectiveOptions.resetMeta !== false) {
          tx.set(this.getMetaBinding(), pathAsArray, this._initialMetaState.getIn(pathAsArray));
        }
  
        tx.commit({ notify: effectiveOptions.notify });
      }
docs: Revert to initial state.
  @param {String|Array} [subpath] subpath as a dot-separated string or an array of strings and numbers
  @param {Object} [options] options object
  @param {Boolean} [options.notify=true] should listeners be notified
  @param {Boolean} [options.resetMeta=true] should meta state be reverted