mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Change ES6 references to ES. [ci skip]
This commit is contained in:
@@ -87,8 +87,8 @@
|
|||||||
reInterpolate = /<%=([\s\S]+?)%>/g;
|
reInterpolate = /<%=([\s\S]+?)%>/g;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to match ES6 template delimiters.
|
* Used to match ES template delimiters.
|
||||||
* See the [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)
|
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-template-literal-lexical-components)
|
||||||
* for more details.
|
* for more details.
|
||||||
*/
|
*/
|
||||||
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
|
||||||
@@ -727,7 +727,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the `toStringTag` of values.
|
* Used to resolve the `toStringTag` of values.
|
||||||
* See the [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
||||||
* for more details.
|
* for more details.
|
||||||
*/
|
*/
|
||||||
var objToString = objectProto.toString;
|
var objToString = objectProto.toString;
|
||||||
@@ -795,7 +795,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Used as the maximum length of an array-like value.
|
* Used as the maximum length of an array-like value.
|
||||||
* See the [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||||
* for more details.
|
* for more details.
|
||||||
*/
|
*/
|
||||||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
|
||||||
@@ -4144,7 +4144,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4522,7 +4522,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4585,7 +4585,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -4714,7 +4714,7 @@
|
|||||||
* **Notes:**
|
* **Notes:**
|
||||||
* - Unlike `_.without`, this method mutates `array`.
|
* - Unlike `_.without`, this method mutates `array`.
|
||||||
* - `SameValueZero` comparisons are like strict equality comparisons, e.g. `===`,
|
* - `SameValueZero` comparisons are like strict equality comparisons, e.g. `===`,
|
||||||
* except that `NaN` matches `NaN`. See the [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* except that `NaN` matches `NaN`. See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -5134,7 +5134,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -5168,7 +5168,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -5254,7 +5254,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -5575,7 +5575,7 @@
|
|||||||
*
|
*
|
||||||
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
* **Note:** `SameValueZero` comparisons are like strict equality comparisons,
|
||||||
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
* e.g. `===`, except that `NaN` matches `NaN`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -7268,9 +7268,9 @@
|
|||||||
*
|
*
|
||||||
* **Note:** The cache is exposed as the `cache` property on the memoized
|
* **Note:** The cache is exposed as the `cache` property on the memoized
|
||||||
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
||||||
* constructor with one whose instances implement the ES6 `Map` method interface
|
* constructor with one whose instances implement the ES `Map` method interface
|
||||||
* of `get`, `has`, and `set`. See the
|
* of `get`, `has`, and `set`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-map-prototype-object)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-properties-of-the-map-prototype-object)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -7909,8 +7909,8 @@
|
|||||||
/**
|
/**
|
||||||
* Checks if `value` is a finite primitive number.
|
* Checks if `value` is a finite primitive number.
|
||||||
*
|
*
|
||||||
* **Note:** This method is based on ES6 `Number.isFinite`. See the
|
* **Note:** This method is based on ES `Number.isFinite`. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -8735,7 +8735,7 @@
|
|||||||
* Creates an array of the own enumerable property names of `object`.
|
* Creates an array of the own enumerable property names of `object`.
|
||||||
*
|
*
|
||||||
* **Note:** Non-object values are coerced to objects. See the
|
* **Note:** Non-object values are coerced to objects. See the
|
||||||
* [ES6 spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)
|
* [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
@@ -9723,7 +9723,7 @@
|
|||||||
* compiled({ 'user': 'barney' });
|
* compiled({ 'user': 'barney' });
|
||||||
* // => 'hello barney!'
|
* // => 'hello barney!'
|
||||||
*
|
*
|
||||||
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
|
* // using the ES delimiter as an alternative to the default "interpolate" delimiter
|
||||||
* var compiled = _.template('hello ${ user }!');
|
* var compiled = _.template('hello ${ user }!');
|
||||||
* compiled({ 'user': 'pebbles' });
|
* compiled({ 'user': 'pebbles' });
|
||||||
* // => 'hello pebbles!'
|
* // => 'hello pebbles!'
|
||||||
|
|||||||
Reference in New Issue
Block a user