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
immosquare-cleaner-0.1.51 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.51 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.50 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.49 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.48 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.47 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.46 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.45 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.44 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.43 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.42 node_modules/core-js/library/modules/es6.number.to-precision.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/es6.number.to-precision.js