Configring node js.
This commit is contained in:
18
node_modules/core-js/library/modules/es6.number.to-precision.js
generated
vendored
Normal file
18
node_modules/core-js/library/modules/es6.number.to-precision.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
var $export = require('./_export')
|
||||
, $fails = require('./_fails')
|
||||
, aNumberValue = require('./_a-number-value')
|
||||
, $toPrecision = 1..toPrecision;
|
||||
|
||||
$export($export.P + $export.F * ($fails(function(){
|
||||
// IE7-
|
||||
return $toPrecision.call(1, undefined) !== '1';
|
||||
}) || !$fails(function(){
|
||||
// V8 ~ Android 4.3-
|
||||
$toPrecision.call({});
|
||||
})), 'Number', {
|
||||
toPrecision: function toPrecision(precision){
|
||||
var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');
|
||||
return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user