@zelgadis87/utils-core 5.2.6 → 5.2.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@zelgadis87/utils-core",
4
- "version": "5.2.6",
4
+ "version": "5.2.7",
5
5
  "author": "Zelgadis87",
6
6
  "license": "ISC",
7
7
  "private": false,
@@ -188,6 +188,6 @@ export function unzip<T, R>( arr: [ T, R ][] ): [ T[], R[] ] {
188
188
  */
189
189
  export function arrayGet<T>( arr: TReadableArray<T>, index: number ) {
190
190
  if ( index < 0 || index >= arr.length )
191
- return Optional.empty();
192
- return Optional.of( arr[ index ] );
191
+ return Optional.empty<T>();
192
+ return Optional.of<T>( arr[ index ] );
193
193
  }