Files
lodash/_isFlattenableIteratee.js
John-David Dalton 57f1942947 Bump to v4.9.0.
2016-04-08 01:30:11 -07:00

17 lines
484 B
JavaScript

define(['./isArray', './isFunction'], function(isArray, 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]));
}
return isFlattenableIteratee;
});