@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/CHANGELOG.md +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/arrays.d.ts +1 -1
- package/esbuild/index.cjs.map +2 -2
- package/esbuild/index.mjs.map +2 -2
- package/package.json +1 -1
- package/src/utils/arrays.ts +2 -2
package/package.json
CHANGED
package/src/utils/arrays.ts
CHANGED
|
@@ -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
|
}
|