mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
26
react-app/node_modules/lodash/collection/forEachRight.js
generated
vendored
Normal file
26
react-app/node_modules/lodash/collection/forEachRight.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
var arrayEachRight = require('../internal/arrayEachRight'),
|
||||
baseEachRight = require('../internal/baseEachRight'),
|
||||
createForEach = require('../internal/createForEach');
|
||||
|
||||
/**
|
||||
* This method is like `_.forEach` except that it iterates over elements of
|
||||
* `collection` from right to left.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias eachRight
|
||||
* @category Collection
|
||||
* @param {Array|Object|string} collection The collection to iterate over.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @param {*} [thisArg] The `this` binding of `iteratee`.
|
||||
* @returns {Array|Object|string} Returns `collection`.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2]).forEachRight(function(n) {
|
||||
* console.log(n);
|
||||
* }).value();
|
||||
* // => logs each value from right to left and returns the array
|
||||
*/
|
||||
var forEachRight = createForEach(arrayEachRight, baseEachRight);
|
||||
|
||||
module.exports = forEachRight;
|
Reference in New Issue
Block a user