code: function createGetter(_ref) {
          var key = _ref.key,
              namespace = _ref.namespace,
              normalizedMappings = _ref.normalizedMappings,
              vmIdentifierKey = _ref.vmIdentifierKey,
              instanceIdentifierKey = _ref.instanceIdentifierKey,
              stateKey = _ref.stateKey;
  
          return function () {
              var _this = this;
  
              // find the state object
              var state = namespace ? resolveObjectPath(this.$store.state, namespace, '/') : this.$store.state;
  
              // find our container of instances
              var instancesContainer = resolveObjectPath(state, stateKey, '.');
  
              // find our instance within it
              var instance = instancesContainer.find(function (obj) {
                  return obj[instanceIdentifierKey] === _this[vmIdentifierKey];
              });
  
              // and if all goes well, resolve the piece of state we're looking for
              if (instance) {
                  return typeof normalizedMappings[key] === 'function' ? normalizedMappings[key](instance) : resolveObjectPath(instance, normalizedMappings[key]);
              }
          };
      }
docs: create a getter for a particular piece of state