@mll-lab/js-utils 2.6.0 → 2.9.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.
@@ -4,3 +4,4 @@
4
4
  * https://gist.github.com/djD-REK/2e347f5532bb22310daf450f03ec6ad8
5
5
  */
6
6
  export declare function round(number: number, decimalPlaces: number): number;
7
+ export declare function firstDecimalDigit(number: number): number;
File without changes
package/dist/string.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export declare function includesIgnoreCase(needle: string, haystack: string | Array<string>): boolean;
2
2
  export declare function firstLine(multilineText: string): string;
3
+ export declare function joinNonEmpty(maybeStrings: Array<string | null | undefined>, separator: string): string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Converts pixel value to number.
3
+ *
4
+ * @example "4px" to 4
5
+ */
6
+ export declare function pxToNumber(pixels: string): number;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mll-lab/js-utils",
3
- "version": "2.6.0",
3
+ "version": "2.9.0",
4
4
  "main": "dist/index.common.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",