lodash.foreachright
Advanced tools
Comparing version 4.0.2 to 4.1.0
50
index.js
/** | ||
* lodash 4.0.2 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
var baseEachRight = require('lodash._baseeachright'); | ||
var baseEachRight = require('lodash._baseeachright'), | ||
baseIteratee = require('lodash._baseiteratee'); | ||
@@ -32,13 +33,2 @@ /** | ||
/** | ||
* Casts `value` to `identity` if it's not a function. | ||
* | ||
* @private | ||
* @param {*} value The value to inspect. | ||
* @returns {Array} Returns the array-like object. | ||
*/ | ||
function baseCastFunction(value) { | ||
return typeof value == 'function' ? value : identity; | ||
} | ||
/** | ||
* This method is like `_.forEach` except that it iterates over elements of | ||
@@ -49,2 +39,3 @@ * `collection` from right to left. | ||
* @memberOf _ | ||
* @since 2.0.0 | ||
* @alias eachRight | ||
@@ -60,3 +51,3 @@ * @category Collection | ||
* }); | ||
* // => logs `2` then `1` | ||
* // => Logs `2` then `1`. | ||
*/ | ||
@@ -66,3 +57,3 @@ function forEachRight(collection, iteratee) { | ||
? arrayEachRight(collection, iteratee) | ||
: baseEachRight(collection, baseCastFunction(iteratee)); | ||
: baseEachRight(collection, baseIteratee(iteratee)); | ||
} | ||
@@ -75,6 +66,8 @@ | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @type {Function} | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -96,21 +89,2 @@ * | ||
/** | ||
* This method returns the first argument given to it. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @category Util | ||
* @param {*} value Any value. | ||
* @returns {*} Returns `value`. | ||
* @example | ||
* | ||
* var object = { 'user': 'fred' }; | ||
* | ||
* _.identity(object) === object; | ||
* // => true | ||
*/ | ||
function identity(value) { | ||
return value; | ||
} | ||
module.exports = forEachRight; |
{ | ||
"name": "lodash.foreachright", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "The lodash method `_.forEachRight` exported as a module.", | ||
@@ -18,4 +18,5 @@ "homepage": "https://lodash.com/", | ||
"dependencies": { | ||
"lodash._baseeachright": "~4.1.0" | ||
"lodash._baseeachright": "~4.1.0", | ||
"lodash._baseiteratee": "~4.6.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.foreachright v4.0.2 | ||
# lodash.foreachright v4.1.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.forEachRight` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.foreachright) for more details. | ||
See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash.foreachright) for more details. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5548
2
1
79
+ Addedlodash._baseiteratee@~4.6.0
+ Addedlodash._baseiteratee@4.6.1(transitive)
+ Addedlodash._stringtopath@4.7.1(transitive)