@adatechnology/game-characters 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -187,6 +187,13 @@ var createCorpseLedger = (options) => {
187
187
  }
188
188
  return removed;
189
189
  },
190
+ remove(index) {
191
+ const entry = entries[index];
192
+ if (!entry) return void 0;
193
+ entries[index] = entries[entries.length - 1];
194
+ entries.pop();
195
+ return entry.data;
196
+ },
190
197
  clear() {
191
198
  entries.length = 0;
192
199
  }