mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +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
|
* @private
|
||||||
* @param {Array|Object} collection The collection to iterate over.
|
* @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.
|
* @returns {Array} Returns the new array of picked elements.
|
||||||
*/
|
*/
|
||||||
function baseAt(collection, props) {
|
function baseAt(collection, props) {
|
||||||
@@ -8555,7 +8555,7 @@
|
|||||||
lodash.inject = reduce;
|
lodash.inject = reduce;
|
||||||
|
|
||||||
mixin(lodash, (function() {
|
mixin(lodash, (function() {
|
||||||
var source = {}
|
var source = {};
|
||||||
baseForOwn(lodash, function(func, methodName) {
|
baseForOwn(lodash, function(func, methodName) {
|
||||||
if (!lodash.prototype[methodName]) {
|
if (!lodash.prototype[methodName]) {
|
||||||
source[methodName] = func;
|
source[methodName] = func;
|
||||||
@@ -8579,9 +8579,9 @@
|
|||||||
lodash.head = first;
|
lodash.head = first;
|
||||||
|
|
||||||
baseForOwn(lodash, function(func, methodName) {
|
baseForOwn(lodash, function(func, methodName) {
|
||||||
var callbackable = methodName !== 'sample';
|
var callbackable = methodName != 'sample';
|
||||||
if (!lodash.prototype[methodName]) {
|
if (!lodash.prototype[methodName]) {
|
||||||
lodash.prototype[methodName]= function(n, guard) {
|
lodash.prototype[methodName] = function(n, guard) {
|
||||||
var chainAll = this.__chain__,
|
var chainAll = this.__chain__,
|
||||||
result = func(this.__wrapped__, n, guard);
|
result = func(this.__wrapped__, n, guard);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user