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.
- package/package.json +1 -1
- package/utils.js +4 -0
package/package.json
CHANGED
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));
|