Files
lodash/_isFlattenableIteratee.js
John-David Dalton 7d39d58e43 Bump to v4.9.0.
2016-04-08 01:35:02 -07:00

17 lines
474 B
JavaScript

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;