UNPKG

math.acosh

Version:

An ES-spec-compliant Math.acosh shim/polyfill/replacement that works as far down as ES3

15 lines (12 loc) 301 B
'use strict'; var define = require('define-properties'); var getPolyfill = require('./polyfill'); module.exports = function shimMathAcosh() { var polyfill = getPolyfill(); define( Math, { acosh: polyfill }, { acosh: function () { return Math.acosh !== polyfill; } } ); return polyfill; };