mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Remove references to _.
This commit is contained in:
11
includes.js
11
includes.js
@@ -15,26 +15,25 @@ const nativeMax = Math.max;
|
||||
* the offset from the end of `collection`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Collection
|
||||
* @param {Array|Object|string} collection The collection to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @param {number} [fromIndex=0] The index to search from.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `reduce`.
|
||||
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.includes([1, 2, 3], 1);
|
||||
* includes([1, 2, 3], 1);
|
||||
* // => true
|
||||
*
|
||||
* _.includes([1, 2, 3], 1, 2);
|
||||
* includes([1, 2, 3], 1, 2);
|
||||
* // => false
|
||||
*
|
||||
* _.includes({ 'a': 1, 'b': 2 }, 1);
|
||||
* includes({ 'a': 1, 'b': 2 }, 1);
|
||||
* // => true
|
||||
*
|
||||
* _.includes('abcd', 'bc');
|
||||
* includes('abcd', 'bc');
|
||||
* // => true
|
||||
*/
|
||||
function includes(collection, value, fromIndex, guard) {
|
||||
|
||||
Reference in New Issue
Block a user