Bump to v4.9.0.

This commit is contained in:
John-David Dalton
2016-04-07 21:49:55 -07:00
parent 7c17af79c7
commit 7d39d58e43
53 changed files with 428 additions and 317 deletions

16
_isFlattenableIteratee.js Normal file
View File

@@ -0,0 +1,16 @@
var isArray = require('./isArray'),
isFunction = require('./isFunction');
/**
* Checks if `value` is a flattenable array and not a `_.matchesProperty`
* iteratee shorthand.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
*/
function isFlattenableIteratee(value) {
return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
}
module.exports = isFlattenableIteratee;