Use an MDN url shortener. [ci skip]

This commit is contained in:
John-David Dalton
2015-10-14 23:24:41 -07:00
parent e22cb5f3b3
commit ba095d11cc

View File

@@ -4081,13 +4081,11 @@
return function(number, precision) { return function(number, precision) {
precision = precision ? toInteger(precision) : 0; precision = precision ? toInteger(precision) : 0;
if (precision) { if (precision) {
// Shift the decimal point with exponential notation to avoid floating-point funny bussiness. // Shift with exponential notation to avoid floating-point issues.
// See [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round#Examples) // See [MDN](https://mdn.io/round#Examples) for more details.
// for more details.
var pair = (+number + 'e').split('e'), var pair = (+number + 'e').split('e'),
value = func(pair[0] + 'e' + (+pair[1] + precision)); value = func(pair[0] + 'e' + (+pair[1] + precision));
// Shift back.
pair = (value + 'e').split('e'); pair = (value + 'e').split('e');
return +(pair[0] + 'e' + (pair[1] - precision)); return +(pair[0] + 'e' + (pair[1] - precision));
} }
@@ -6575,7 +6573,7 @@
/** /**
* Gets the next value on a wrapped object following the * Gets the next value on a wrapped object following the
* [iterator protocol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterator). * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
* *
* @name next * @name next
* @memberOf _ * @memberOf _
@@ -8485,7 +8483,7 @@
* Creates a function that invokes `func` with the `this` binding of the * Creates a function that invokes `func` with the `this` binding of the
* created function and arguments from `start` and beyond provided as an array. * created function and arguments from `start` and beyond provided as an array.
* *
* **Note:** This method is based on the [rest parameter](https://developer.mozilla.org/Web/JavaScript/Reference/Functions/rest_parameters). * **Note:** This method is based on the [rest parameter](https://mdn.io/rest_parameters).
* *
* @static * @static
* @memberOf _ * @memberOf _
@@ -8536,7 +8534,7 @@
* Creates a function that invokes `func` with the `this` binding of the created * Creates a function that invokes `func` with the `this` binding of the created
* function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3). * function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3).
* *
* **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator). * **Note:** This method is based on the [spread operator](https://mdn.io/spread_operator).
* *
* @static * @static
* @memberOf _ * @memberOf _