aotrautils 0.0.428 → 0.0.429

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,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (11/01/2023-22:39:28)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (13/01/2023-18:07:14)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -1979,6 +1979,11 @@ window.getAt=function(associativeOrNormalArray,index,returnKey=false){
1979
1979
  });
1980
1980
  }
1981
1981
 
1982
+ window.getFirst=function(associativeOrNormalArray){
1983
+ if(empty(associativeOrNormalArray)) return null;
1984
+ return getAt(associativeOrNormalArray, 0);
1985
+ }
1986
+
1982
1987
  window.getLast=function(associativeOrNormalArray){
1983
1988
  if(empty(associativeOrNormalArray)) return null;
1984
1989
  return getAt(associativeOrNormalArray, getArraySize(associativeOrNormalArray)-1);
@@ -4851,7 +4856,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
4851
4856
 
4852
4857
 
4853
4858
 
4854
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (11/01/2023-22:39:28)»*/
4859
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (13/01/2023-18:07:14)»*/
4855
4860
  /*-----------------------------------------------------------------------------*/
4856
4861
  /* ## Utility global methods in a browser (htmljs) client environment.
4857
4862
  *
@@ -12973,7 +12978,7 @@ createOritaMicroClient=function(url, port, isNode=false){
12973
12978
  };
12974
12979
 
12975
12980
 
12976
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (11/01/2023-22:39:28)»*/
12981
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (13/01/2023-18:07:14)»*/
12977
12982
  /*-----------------------------------------------------------------------------*/
12978
12983
 
12979
12984
 
@@ -14201,7 +14206,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
14201
14206
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14202
14207
 
14203
14208
  AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14204
- /*utils SERVER library associated with aotra version : «1_29072022-2359 (11/01/2023-22:39:28)»*/
14209
+ /*utils SERVER library associated with aotra version : «1_29072022-2359 (13/01/2023-18:07:14)»*/
14205
14210
  /*-----------------------------------------------------------------------------*/
14206
14211
 
14207
14212
 
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.428",
3
+ "version": "0.0.429",
4
4
  "main": "aotrautils.build.js",
5
5
  "description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
6
6
  "author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",