@alwatr/math
Advanced tools
Comparing version 0.22.0 to 0.22.1
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.22.1](https://github.com/AliMD/alwatr/compare/v0.22.0...v0.22.1) (2022-11-21) | ||
**Note:** Version bump only for package @alwatr/math | ||
# [0.22.0](https://github.com/AliMD/alwatr/compare/v0.21.0...v0.22.0) (2022-11-20) | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "@alwatr/math", | ||
"version": "0.22.0", | ||
"version": "0.22.1", | ||
"description": "Simple useful Math library written in tiny TypeScript module.", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "2c45f39d4f1d684c9580ed28501b31b7c170ebd4" | ||
"gitHead": "0e754ce09f4d6bedc34029d9d03b38f471782456" | ||
} |
@@ -59,2 +59,3 @@ # Alwatr Math - `@alwatr/math` | ||
<!-- prettier-ignore --> | ||
```ts | ||
@@ -61,0 +62,0 @@ import {isNumber} from 'https://esm.run/@alwatr/math'; |
@@ -94,25 +94,25 @@ declare const supportedLanguageList: { | ||
/** | ||
* Convert the String of number of the source language to the destination language. | ||
* | ||
* @param {string} str - String of number of the source language. | ||
* @returns String of number of the destination language. | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* const list = [ | ||
* '0123456789', | ||
* '٠١٢٣٤٥٦٧٨٩', | ||
* '߀߁߂߃߄߅߆߇߈߉', | ||
* '०१२३४५६७८९', | ||
* '০১২৩৪৫৬৭৮৯', | ||
* '੦੧੨੩੪੫੬੭੮੯', | ||
* '૦૧૨૩૪૫૬૭૮૯', | ||
* '୦୧୨୩୪୫୬୭୮୯', | ||
* '௦௧௨௩௪௫௬௭௮௯', | ||
* ].join('\n'); | ||
* | ||
* console.log(unicodeDigits.translate(list)); | ||
* ``` | ||
*/ | ||
* Convert the String of number of the source language to the destination language. | ||
* | ||
* @param {string} str - String of number of the source language. | ||
* @returns String of number of the destination language. | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* const list = [ | ||
* '0123456789', | ||
* '٠١٢٣٤٥٦٧٨٩', | ||
* '߀߁߂߃߄߅߆߇߈߉', | ||
* '०१२३४५६७८९', | ||
* '০১২৩৪৫৬৭৮৯', | ||
* '੦੧੨੩੪੫੬੭੮੯', | ||
* '૦૧૨૩૪૫૬૭૮૯', | ||
* '୦୧୨୩୪୫୬୭୮୯', | ||
* '௦௧௨௩௪௫௬௭௮௯', | ||
* ].join('\n'); | ||
* | ||
* console.log(unicodeDigits.translate(list)); | ||
* ``` | ||
*/ | ||
translate(str: string): string; | ||
@@ -119,0 +119,0 @@ } |
@@ -107,25 +107,25 @@ const supportedLanguageList = { | ||
/** | ||
* Convert the String of number of the source language to the destination language. | ||
* | ||
* @param {string} str - String of number of the source language. | ||
* @returns String of number of the destination language. | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* const list = [ | ||
* '0123456789', | ||
* '٠١٢٣٤٥٦٧٨٩', | ||
* '߀߁߂߃߄߅߆߇߈߉', | ||
* '०१२३४५६७८९', | ||
* '০১২৩৪৫৬৭৮৯', | ||
* '੦੧੨੩੪੫੬੭੮੯', | ||
* '૦૧૨૩૪૫૬૭૮૯', | ||
* '୦୧୨୩୪୫୬୭୮୯', | ||
* '௦௧௨௩௪௫௬௭௮௯', | ||
* ].join('\n'); | ||
* | ||
* console.log(unicodeDigits.translate(list)); | ||
* ``` | ||
*/ | ||
* Convert the String of number of the source language to the destination language. | ||
* | ||
* @param {string} str - String of number of the source language. | ||
* @returns String of number of the destination language. | ||
* | ||
* Example: | ||
* | ||
* ```ts | ||
* const list = [ | ||
* '0123456789', | ||
* '٠١٢٣٤٥٦٧٨٩', | ||
* '߀߁߂߃߄߅߆߇߈߉', | ||
* '०१२३४५६७८९', | ||
* '০১২৩৪৫৬৭৮৯', | ||
* '੦੧੨੩੪੫੬੭੮੯', | ||
* '૦૧૨૩૪૫૬૭૮૯', | ||
* '୦୧୨୩୪୫୬୭୮୯', | ||
* '௦௧௨௩௪௫௬௭௮௯', | ||
* ].join('\n'); | ||
* | ||
* console.log(unicodeDigits.translate(list)); | ||
* ``` | ||
*/ | ||
translate(str) { | ||
@@ -132,0 +132,0 @@ return str.replace(this._searchRegExt, this._replacer); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35217
211