Version 1
[yaffs-website] / node_modules / core-js / library / modules / es6.math.cosh.js
diff --git a/node_modules/core-js/library/modules/es6.math.cosh.js b/node_modules/core-js/library/modules/es6.math.cosh.js
new file mode 100644 (file)
index 0000000..4f2b215
--- /dev/null
@@ -0,0 +1,9 @@
+// 20.2.2.12 Math.cosh(x)
+var $export = require('./_export')
+  , exp     = Math.exp;
+
+$export($export.S, 'Math', {
+  cosh: function cosh(x){
+    return (exp(x = +x) + exp(-x)) / 2;
+  }
+});
\ No newline at end of file