tripstorekrabi-shared 1.12.4 → 1.12.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.12.4",
3
+ "version": "1.12.5",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/utils.js CHANGED
@@ -209,6 +209,10 @@ export function capitalize(string) {
209
209
  return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
210
210
  }
211
211
 
212
+ export function uncapitalizeFirstLetter(string) {
213
+ return string.charAt(0).toLowerCase() + string.slice(1);
214
+ }
215
+
212
216
  export function transformToNCols(array, n) {
213
217
  let converted = [];
214
218
  let chunks = chunkArray(array, Math.ceil(array.length / n));