mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Minor comment and code style fixes
This commit is contained in:
committed by
John-David Dalton
parent
71c19b566b
commit
41ac7062f8
@@ -242,7 +242,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {number[]|string[]} [keys] The keys of elements to pick.
|
||||
* @param {number[]|string[]} [props] The keys of elements to pick.
|
||||
* @returns {Array} Returns the new array of picked elements.
|
||||
*/
|
||||
function baseAt(collection, props) {
|
||||
@@ -8555,7 +8555,7 @@
|
||||
lodash.inject = reduce;
|
||||
|
||||
mixin(lodash, (function() {
|
||||
var source = {}
|
||||
var source = {};
|
||||
baseForOwn(lodash, function(func, methodName) {
|
||||
if (!lodash.prototype[methodName]) {
|
||||
source[methodName] = func;
|
||||
@@ -8579,9 +8579,9 @@
|
||||
lodash.head = first;
|
||||
|
||||
baseForOwn(lodash, function(func, methodName) {
|
||||
var callbackable = methodName !== 'sample';
|
||||
var callbackable = methodName != 'sample';
|
||||
if (!lodash.prototype[methodName]) {
|
||||
lodash.prototype[methodName]= function(n, guard) {
|
||||
lodash.prototype[methodName] = function(n, guard) {
|
||||
var chainAll = this.__chain__,
|
||||
result = func(this.__wrapped__, n, guard);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user