code: function create(item, store) {
        var data = store.rootData.asObject();
        // New item has id
        if (item[store.idProperty]) {
          // Check item duplicated
          if (!data[item[store.idProperty]]) {
            // Create item
            data[item[store.idProperty]] = item;
          } else {
            // Item already exists
            return vcomet.error.log(
              "store",
              "Item with id " + item[store.idProperty] + " already exists"
            );
          }
        } else {
          // Add id value to item
          item[store.idProperty] = Object.keys(data).length.toString();
          // Create item
          data[item[store.idProperty]] = item;
        }
        if (item[store.idProperty]) {
          // Update store data
          store.rootData = store.data = new Result(data, store, store.data.__sorted);
          // Update store data items length
          store.size = Object.keys(store.data).length;
          // Trigger onSourceChanged event
          vcomet.triggerCallback("onSourceChanged", store);
          return item;
        } else {
          return vcomet.error.log("store", "Incorrect item format");
        }
      }
docs: /*
  @function create
  @description Create a store data item from a local source
  @param {Object} item [Data item]
  @param {Object} store [Store element]