summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/math/abs.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/math/abs.js')
-rw-r--r--node_modules/locutus/php/math/abs.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/locutus/php/math/abs.js b/node_modules/locutus/php/math/abs.js
deleted file mode 100644
index 7be6a86..0000000
--- a/node_modules/locutus/php/math/abs.js
+++ /dev/null
@@ -1,20 +0,0 @@
-"use strict";
-
-module.exports = function abs(mixedNumber) {
- // discuss at: http://locutus.io/php/abs/
- // original by: Waldo Malqui Silva (http://waldo.malqui.info)
- // improved by: Karol Kowalski
- // improved by: Kevin van Zonneveld (http://kvz.io)
- // improved by: Jonas Raoni Soares Silva (http://www.jsfromhell.com)
- // example 1: abs(4.2)
- // returns 1: 4.2
- // example 2: abs(-4.2)
- // returns 2: 4.2
- // example 3: abs(-5)
- // returns 3: 5
- // example 4: abs('_argos')
- // returns 4: 0
-
- return Math.abs(mixedNumber) || 0;
-};
-//# sourceMappingURL=abs.js.map \ No newline at end of file