Sha256: 38a9b399a48856064d1744b64740a1585a820c4d14da9eb042498c43ffbe24b1

Contents?: true

Size: 613 Bytes

Versions: 64

Compression:

Stored size: 613 Bytes

Contents

'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);
  }
});

Version data entries

64 entries across 29 versions & 8 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/core-js/modules/es6.number.to-precision.js
optimacms-0.4.3 spec/dummy/node_modules/core-js/library/modules/es6.number.to-precision.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/library/modules/es6.number.to-precision.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/modules/es6.number.to-precision.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/modules/es6.number.to-precision.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/library/modules/es6.number.to-precision.js
lux_assets-0.2.11 ./node_modules/core-js/modules/es6.number.to-precision.js
lux_assets-0.2.11 ./node_modules/core-js/library/modules/es6.number.to-precision.js
lux_assets-0.2.9 ./node_modules/core-js/modules/es6.number.to-precision.js
lux_assets-0.2.9 ./node_modules/core-js/library/modules/es6.number.to-precision.js
lux_assets-0.2.4 ./node_modules/core-js/library/modules/es6.number.to-precision.js
lux_assets-0.2.4 ./node_modules/core-js/modules/es6.number.to-precision.js
lux_assets-0.2.2 ./node_modules/core-js/library/modules/es6.number.to-precision.js
lux_assets-0.2.2 ./node_modules/core-js/modules/es6.number.to-precision.js
lux_assets-0.2.1 ./node_modules/core-js/modules/es6.number.to-precision.js
lux_assets-0.2.1 ./node_modules/core-js/library/modules/es6.number.to-precision.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/modules/es6.number.to-precision.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/library/modules/es6.number.to-precision.js
cortex-0.1.3 spec/dummy/node_modules/core-js/library/modules/es6.number.to-precision.js
cortex-0.1.3 spec/dummy/node_modules/core-js/modules/es6.number.to-precision.js