code: function defaultDeletor(path, payload, store, conf) {
      if (conf === void 0) { conf = {}; }
      var _a = formatDeletor(path, payload, store, conf), command = _a.command, _path = _a._path, _payload = _a._payload;
      if (command === 'error')
          return _payload;
      return store[command](_path, _payload);
  }
docs: Creates a delete function in the store to delete any prop from a value
  Usage:
  `delete('module/path/path.to.prop', id)` will delete prop[id]
  `delete('module/path/path.to.prop.*', {id})` will delete prop[id]
  it will check first for existence of: `dispatch('module/path/-path.to.prop')` or `dispatch('module/path/-path.to.prop.*')`
  if non existant it will execute: `commit('module/path/-path.to.prop')` or `commit('module/path/-path.to.prop.*')`
  Import method:
  `store.delete = (path, payload) => { return defaultDeletor(path, payload, store, conf) }`
  
  @param {string} path the path of the prop to delete eg. 'info/user/favColours.primary'
  @param {*} payload either nothing or an id or {id}
  @param {IInitialisedStore} store the store to attach
  @param {IDefaultConfig} [conf={}] user config
  @returns {*} dispatch or commit