@mll-lab/js-utils 2.3.0 → 2.4.0
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/dist/index.common.js +12 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/string.d.ts +2 -0
- package/dist/string.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -15161,6 +15161,16 @@ function round(number, decimalPlaces) {
|
|
|
15161
15161
|
return Math.round(number * factorOfTen) / factorOfTen;
|
|
15162
15162
|
}
|
|
15163
15163
|
|
|
15164
|
+
function includesIgnoreCase(needle, haystack) {
|
|
15165
|
+
if (haystack instanceof Array) {
|
|
15166
|
+
return haystack.some((hay) => includesIgnoreCase(needle, hay));
|
|
15167
|
+
}
|
|
15168
|
+
return haystack.toLowerCase().includes(needle.toLowerCase());
|
|
15169
|
+
}
|
|
15170
|
+
function firstLine(multilineText) {
|
|
15171
|
+
return multilineText.split('\n', 1)[0];
|
|
15172
|
+
}
|
|
15173
|
+
|
|
15164
15174
|
exports.DOTLESS_DATE_FORMAT = DOTLESS_DATE_FORMAT;
|
|
15165
15175
|
exports.EMAIL_REGEX = EMAIL_REGEX;
|
|
15166
15176
|
exports.EMPTY_ARRAY = EMPTY_ARRAY;
|
|
@@ -15171,6 +15181,7 @@ exports.ISO_DATE_FORMAT = ISO_DATE_FORMAT;
|
|
|
15171
15181
|
exports.ISO_DATE_TIME_FORMAT = ISO_DATE_TIME_FORMAT;
|
|
15172
15182
|
exports.SECONDLESS_DATE_TIME_FORMAT = SECONDLESS_DATE_TIME_FORMAT;
|
|
15173
15183
|
exports.containSameValues = containSameValues;
|
|
15184
|
+
exports.firstLine = firstLine;
|
|
15174
15185
|
exports.formatDotlessDate = formatDotlessDate;
|
|
15175
15186
|
exports.formatGerman = formatGerman;
|
|
15176
15187
|
exports.formatGermanDateTime = formatGermanDateTime;
|
|
@@ -15178,6 +15189,7 @@ exports.formatGermanDotlessDate = formatGermanDotlessDate;
|
|
|
15178
15189
|
exports.formatIsoDate = formatIsoDate;
|
|
15179
15190
|
exports.formatIsoDateTime = formatIsoDateTime;
|
|
15180
15191
|
exports.formatSecondlessDateTime = formatSecondlessDateTime;
|
|
15192
|
+
exports.includesIgnoreCase = includesIgnoreCase;
|
|
15181
15193
|
exports.insertIf = insertIf;
|
|
15182
15194
|
exports.isAlphanumeric = isAlphanumeric;
|
|
15183
15195
|
exports.isBSNR = isBSNR;
|