1 | import isArray from './isArray';
|
2 | import isFunction from './isFunction';
|
3 |
|
4 | /**
|
5 | * Checks if `value` is a flattenable array and not a `_.matchesProperty`
|
6 | * iteratee shorthand.
|
7 | *
|
8 | * @private
|
9 | * @param {*} value The value to check.
|
10 | * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
11 | */
|
12 | function isFlattenableIteratee(value) {
|
13 | return isArray(value) && !(value.length == 2 && !isFunction(value[0]));
|
14 | }
|
15 |
|
16 | export default isFlattenableIteratee;
|