UNPKG

polyfill-service

Version:
1 lines 916 B
{"aliases":["es6"],"browsers":{"android":"*","bb":"*","chrome":"1 - 37","firefox":"1 - 26","ie":"*","ie_mob":"10 - *","ios_chr":"*","ios_saf":"4 - 7","opera":"10 - 20","op_mob":"*","op_mini":"*","safari":"4 - 7","firefox_mob":"1 - 26"},"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot","spec":"http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot","baseDir":"Math/hypot","hasTests":false,"rawSource":"\n// Math.hypot\nMath.hypot = function hypot() {\n\tvar args = arguments, index = -1, y = 0;\n\n\twhile (++index in args && Math.abs(y) !== Infinity) {\n\t\ty += args[index] * args[index];\n\t}\n\n\treturn Math.abs(y) === Infinity ? Infinity : Math.sqrt(y);\n};\n","minSource":"Math.hypot=function(){for(var t=arguments,a=-1,h=0;++a in t&&Math.abs(h)!==1/0;)h+=t[a]*t[a];return Math.abs(h)===1/0?1/0:Math.sqrt(h)};","detectSource":"'hypot' in Math"}