source:
trip-planner-front/node_modules/core-js/modules/es.math.log2.js@
e29cc2e
Last change on this file since e29cc2e was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 242 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | var $ = require('../internals/export'); |
2 | ||
3 | var log = Math.log; | |
4 | var LN2 = Math.LN2; | |
5 | ||
6 | // `Math.log2` method | |
7 | // https://tc39.es/ecma262/#sec-math.log2 | |
8 | $({ target: 'Math', stat: true }, { | |
9 | log2: function log2(x) { | |
10 | return log(x) / LN2; | |
11 | } | |
12 | }); |
Note:
See TracBrowser
for help on using the repository browser.