some-common-functions-js 1.0.3 → 1.0.5

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 CHANGED
@@ -18,3 +18,9 @@ Improve README.md documentation.
18
18
 
19
19
  ## Version 1.0.4 - 2025/11/20 - ITA
20
20
  - Improved the readability of README.me
21
+
22
+ ## Version 1.05 - 2025/11/21 - ITA
23
+ - Corrected README documentation.
24
+
25
+ ## Version 1.06 - 2025/11/21 - ITA
26
+ - Updated package.json version in lieu of changes. Otherwise the updated package won't be published on npm.
package/README.md CHANGED
@@ -278,7 +278,8 @@ let teams = [
278
278
  numGames: 10
279
279
  }
280
280
  ];
281
- // Using objCompare to sort fields where there
281
+ // Using objCompare to sort fields where there are mixed sort directions.
282
+ // Sort by score descending, then by numGames ascending.
282
283
  teams.sort((team1, team2) => {
283
284
  return commonFunctions.objCompare(
284
285
  team1, team2,
@@ -287,33 +288,6 @@ teams.sort((team1, team2) => {
287
288
  );
288
289
  });
289
290
  console.log(teams);
290
- /*
291
- let teams = [
292
- {
293
- score: 85,
294
- numGames: 10
295
- },
296
- {
297
- score: 90,
298
- numGames: 12
299
- },
300
- {
301
- score: 85,
302
- numGames: 8
303
- },
304
- {
305
- score: 90,
306
- numGames: 10
307
- }
308
- ];
309
- // Sort by score descending, then by numGames ascending.
310
- objArray.sort((team1, team2) => {
311
- return commonFunctions.objCompare(
312
- team1, team2,
313
- "score desc",
314
- "numGames asc"
315
- );
316
- });
317
291
  /*
318
292
  [
319
293
  { score: 90, numGames: 10 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "some-common-functions-js",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Common functions used with Javascript objects, and field validation functions.",
5
5
  "keywords": [
6
6
  "validation",