@krish985/maths 1.0.0 → 1.0.1
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.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,UASvC;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAG,MAAM,UAGlC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function maxOfArray(arr) {
|
|
1
|
+
export function maxOfArray(arr) {
|
|
4
2
|
if (arr.length == 0)
|
|
5
3
|
throw new Error("Array is empty");
|
|
6
4
|
let max = arr[0];
|
|
@@ -9,7 +7,7 @@ function maxOfArray(arr) {
|
|
|
9
7
|
}
|
|
10
8
|
return max;
|
|
11
9
|
}
|
|
12
|
-
function fistEl(str) {
|
|
10
|
+
export function fistEl(str) {
|
|
13
11
|
if (str.length == 0)
|
|
14
12
|
throw new Error('String is empty');
|
|
15
13
|
return str.charAt(0);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,UAAU,CAAC,GAAa;IACpC,IAAG,GAAG,CAAC,MAAM,IAAI,CAAC;QAAG,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;IACtD,IAAI,GAAG,GAAY,GAAG,CAAC,CAAC,CAAE,CAAC;IAE3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,GAAY;IAC/B,IAAG,GAAG,CAAC,MAAM,IAAI,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACtD,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACxB,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function maxOfArray(arr: number[]) {
|
|
1
|
+
export function maxOfArray(arr: number[]) {
|
|
2
2
|
if(arr.length == 0) throw new Error("Array is empty")
|
|
3
3
|
let max: number = arr[0]!;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ function maxOfArray(arr: number[]) {
|
|
|
9
9
|
return max;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
function fistEl(str : string){
|
|
12
|
+
export function fistEl(str : string){
|
|
13
13
|
if(str.length == 0) throw new Error('String is empty')
|
|
14
14
|
return str.charAt(0)
|
|
15
15
|
}
|