@stacksjs/arrays 0.58.64 → 0.58.66

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helpers.ts +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/arrays",
3
3
  "type": "module",
4
- "version": "0.58.64",
4
+ "version": "0.58.66",
5
5
  "description": "The Stacks array utilities.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/helpers.ts CHANGED
@@ -220,7 +220,7 @@ export function move<T>(array: T[], from: number, to: number): T[] {
220
220
  to += len
221
221
 
222
222
  const item = array.splice(from, 1)[0]
223
- array.splice(to, 0, item)
223
+ array.splice(to, 0, item!)
224
224
  return array
225
225
  }
226
226