mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Cleanup docs in _.matches and _.where. [ci skip]
This commit is contained in:
15
dist/lodash.compat.js
vendored
15
dist/lodash.compat.js
vendored
@@ -345,7 +345,7 @@
|
||||
// for `a` and `b`. See https://github.com/jashkenas/underscore/pull/1247
|
||||
//
|
||||
// This also ensures a stable sort in V8 and other engines.
|
||||
// See http://code.google.com/p/v8/issues/detail?id=90
|
||||
// See https://code.google.com/p/v8/issues/detail?id=90
|
||||
return a.index - b.index;
|
||||
}
|
||||
|
||||
@@ -4541,7 +4541,7 @@
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
* `props` object, returning an array of all elements that have equivalent
|
||||
* `source` object, returning an array of all elements that have equivalent
|
||||
* property values.
|
||||
*
|
||||
* @static
|
||||
@@ -4549,7 +4549,7 @@
|
||||
* @type Function
|
||||
* @category Collections
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Object} props The object of property values to filter by.
|
||||
* @param {Object} source The object of property values to filter by.
|
||||
* @returns {Array} Returns a new array of elements that have the given properties.
|
||||
* @example
|
||||
*
|
||||
@@ -6066,7 +6066,7 @@
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// http://code.google.com/p/v8/issues/detail?id=2291
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
var type = typeof value;
|
||||
return value && (type == 'function' || type == 'object') || false;
|
||||
}
|
||||
@@ -7022,13 +7022,13 @@
|
||||
|
||||
/**
|
||||
* Creates a "_.where" style function, which performs a deep comparison
|
||||
* between a given object and the `props` object, returning `true` if the
|
||||
* between a given object and the `source` object, returning `true` if the
|
||||
* given object has equivalent property values, else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} props The object of property values to match.
|
||||
* @param {Object} source The object of property values to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -7227,8 +7227,9 @@
|
||||
* // => 8
|
||||
*/
|
||||
var parseInt = nativeParseInt(whitespace + '08') == 8 ? nativeParseInt : function(value, radix) {
|
||||
// Firefox < 21 and Opera < 15 follow ES3 for `parseInt` and
|
||||
// Chrome fails to trim leading <BOM> whitespace characters.
|
||||
// Firefox < 21 and Opera < 15 follow the ES3 specified implementation of `parseInt`.
|
||||
// See https://code.google.com/p/v8/issues/detail?id=3109
|
||||
value = trim(value);
|
||||
return nativeParseInt(value, +radix || (reHexPrefix.test(value) ? 16 : 10));
|
||||
};
|
||||
|
||||
15
dist/lodash.js
vendored
15
dist/lodash.js
vendored
@@ -338,7 +338,7 @@
|
||||
// for `a` and `b`. See https://github.com/jashkenas/underscore/pull/1247
|
||||
//
|
||||
// This also ensures a stable sort in V8 and other engines.
|
||||
// See http://code.google.com/p/v8/issues/detail?id=90
|
||||
// See https://code.google.com/p/v8/issues/detail?id=90
|
||||
return a.index - b.index;
|
||||
}
|
||||
|
||||
@@ -4275,7 +4275,7 @@
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
* `props` object, returning an array of all elements that have equivalent
|
||||
* `source` object, returning an array of all elements that have equivalent
|
||||
* property values.
|
||||
*
|
||||
* @static
|
||||
@@ -4283,7 +4283,7 @@
|
||||
* @type Function
|
||||
* @category Collections
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Object} props The object of property values to filter by.
|
||||
* @param {Object} source The object of property values to filter by.
|
||||
* @returns {Array} Returns a new array of elements that have the given properties.
|
||||
* @example
|
||||
*
|
||||
@@ -5793,7 +5793,7 @@
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// http://code.google.com/p/v8/issues/detail?id=2291
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
var type = typeof value;
|
||||
return value && (type == 'function' || type == 'object') || false;
|
||||
}
|
||||
@@ -6743,13 +6743,13 @@
|
||||
|
||||
/**
|
||||
* Creates a "_.where" style function, which performs a deep comparison
|
||||
* between a given object and the `props` object, returning `true` if the
|
||||
* between a given object and the `source` object, returning `true` if the
|
||||
* given object has equivalent property values, else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} props The object of property values to match.
|
||||
* @param {Object} source The object of property values to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -6948,8 +6948,9 @@
|
||||
* // => 8
|
||||
*/
|
||||
var parseInt = nativeParseInt(whitespace + '08') == 8 ? nativeParseInt : function(value, radix) {
|
||||
// Firefox < 21 and Opera < 15 follow ES3 for `parseInt` and
|
||||
// Chrome fails to trim leading <BOM> whitespace characters.
|
||||
// Firefox < 21 and Opera < 15 follow the ES3 specified implementation of `parseInt`.
|
||||
// See https://code.google.com/p/v8/issues/detail?id=3109
|
||||
value = trim(value);
|
||||
return nativeParseInt(value, +radix || (reHexPrefix.test(value) ? 16 : 10));
|
||||
};
|
||||
|
||||
10
dist/lodash.underscore.js
vendored
10
dist/lodash.underscore.js
vendored
@@ -3121,7 +3121,7 @@
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
* `props` object, returning an array of all elements that have equivalent
|
||||
* `source` object, returning an array of all elements that have equivalent
|
||||
* property values.
|
||||
*
|
||||
* @static
|
||||
@@ -3129,7 +3129,7 @@
|
||||
* @type Function
|
||||
* @category Collections
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Object} props The object of property values to filter by.
|
||||
* @param {Object} source The object of property values to filter by.
|
||||
* @returns {Array} Returns a new array of elements that have the given properties.
|
||||
* @example
|
||||
*
|
||||
@@ -4150,7 +4150,7 @@
|
||||
// check if the value is the ECMAScript language type of Object
|
||||
// http://es5.github.io/#x8
|
||||
// and avoid a V8 bug
|
||||
// http://code.google.com/p/v8/issues/detail?id=2291
|
||||
// https://code.google.com/p/v8/issues/detail?id=2291
|
||||
var type = typeof value;
|
||||
return value && (type == 'function' || type == 'object') || false;
|
||||
}
|
||||
@@ -4729,13 +4729,13 @@
|
||||
|
||||
/**
|
||||
* Creates a "_.where" style function, which performs a deep comparison
|
||||
* between a given object and the `props` object, returning `true` if the
|
||||
* between a given object and the `source` object, returning `true` if the
|
||||
* given object has equivalent property values, else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Utilities
|
||||
* @param {Object} props The object of property values to match.
|
||||
* @param {Object} source The object of property values to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user