extra-function.web
Advanced tools
+1
-1
| { | ||
| "name": "extra-function.web", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "description": "A collection of ways for transforming functions.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+59
-0
@@ -0,1 +1,60 @@ | ||
| A collection of ways for transforming functions.<br> | ||
| 📦 [Node.js](https://www.npmjs.com/package/extra-function), | ||
| 🌐 [Web](https://www.npmjs.com/package/extra-function.web), | ||
| 📜 [Files](https://unpkg.com/extra-function/), | ||
| 📰 [JSDoc](https://nodef.github.io/extra-function/), | ||
| 📘 [Wiki](https://github.com/nodef/extra-function/wiki/). | ||
| A function is a relation or expression involving one or more variables. | ||
| This package is available in both *Node.js* and *Web* formats. The web format is | ||
| exposed as `extra_math` standalone variable and can be loaded from [jsDelivr CDN]. | ||
| [jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-math.web/index.js | ||
| > Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo). | ||
| <br> | ||
| ```javascript | ||
| const math = require('extra-math'); | ||
| // import * as math from "extra-math"; | ||
| // import * as math from "https://unpkg.com/extra-math/index.mjs"; (deno) | ||
| math.sum(1, 2, 3, 4); | ||
| // → 10 | ||
| math.median(1, 7, 8); | ||
| // → 7 | ||
| math.variance(1, 2, 3, 4); | ||
| // → 1.25 | ||
| math.lcm(2, 3, 4); | ||
| // → 12 | ||
| ``` | ||
| <br> | ||
| <br> | ||
| ## Index | ||
| | Property | Description | | ||
| | ---- | ---- | | ||
| | [rem] | Find the remainder of x/y with sign of x (truncated division). | | ||
| <br> | ||
| <br> | ||
| ## References | ||
| - [Modulo operation](https://en.wikipedia.org/wiki/Modulo_operation) | ||
| <br> | ||
| <br> | ||
| [](https://www.youtube.com/watch?v=dW8Cy6WrO94)<br> |
14522
10.08%61
2950%