@woosh/meep-engine 2.99.1 → 2.100.0

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/build/meep.cjs CHANGED
@@ -61334,12 +61334,14 @@ class List {
61334
61334
  };
61335
61335
 
61336
61336
  /**
61337
- * @param {T[]} [array]
61337
+ * @param {[]} [array]
61338
61338
  * @constructor
61339
61339
  */
61340
61340
  constructor(array) {
61341
61341
 
61342
61342
  /**
61343
+ * @private
61344
+ * @readonly
61343
61345
  * @type {T[]}
61344
61346
  */
61345
61347
  this.data = array !== undefined ? array.slice() : [];
@@ -61692,6 +61694,17 @@ class List {
61692
61694
  return new List(this.data);
61693
61695
  }
61694
61696
 
61697
+ /**
61698
+ * Returns a shallow copy array with elements in range from start to end (end not included)
61699
+ * Same as {@link Array.prototype.slice}
61700
+ * @param {number} [start]
61701
+ * @param {number} [end]
61702
+ * @return {T[]}
61703
+ */
61704
+ slice(start, end) {
61705
+ return this.data.slice(start, end);
61706
+ }
61707
+
61695
61708
  /**
61696
61709
  *
61697
61710
  * @param {function(element:T):boolean} condition