code: function (item) {
          let result = {};
          if (item === __private.local) {
              Object.keys(__private.local).forEach(function (e) {
                  result = Object.assign(result, _getLocalItems(__private.local[e]));
              });
              return result;
          }
          switch (item.type) {
              case Type.STRING:
              case Type.NUMBER:
              case Type.BOOLEAN:
              case Type.UNDEFINED:
                  result[item.key] = item.timestamp;
                  break;
              case Type.ARRAY:
              case Type.OBJECT:
                  item.value.forEach(function (e) {
                      result = Object.assign(result, _getLocalItems(e));
                  });
                  break;
              default:
                  _logUnknownType(item.type);
          }
          return result;
      }
docs: ************************************************************
  Synchronisation of Local with Remote
  ************************************************************ A utility method to get local items for the sync operation.