mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 05:31:41 +00:00
update
This commit is contained in:
18
node_modules/core-js/modules/es6.number.to-precision.js
generated
vendored
Normal file
18
node_modules/core-js/modules/es6.number.to-precision.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
var $export = require('./_export');
|
||||
var $fails = require('./_fails');
|
||||
var aNumberValue = require('./_a-number-value');
|
||||
var $toPrecision = 1.0.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