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