isaacscript-common 1.0.551 → 1.0.552

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.
@@ -1,6 +1,7 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  /// <reference types="typescript-to-lua/language-extensions" />
3
3
  export declare function arrayCombine<T>(array1: T[], array2: T[]): T[];
4
+ export declare function arrayCopy<T>(array: T[]): T[];
4
5
  export declare function arrayEmpty<T>(array: T[]): void;
5
6
  /** Helper function for determining if two arrays contain the exact same elements. */
6
7
  export declare function arrayEquals<T>(array1: T[], array2: T[]): boolean;
@@ -41,6 +41,11 @@ function ____exports.arrayCombine(self, array1, array2)
41
41
  )
42
42
  }
43
43
  end
44
+ function ____exports.arrayCopy(self, array)
45
+ return {
46
+ table.unpack(array)
47
+ }
48
+ end
44
49
  function ____exports.arrayEmpty(self, array)
45
50
  __TS__ArraySplice(array, 0, #array)
46
51
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.551",
3
+ "version": "1.0.552",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",