mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
16 lines
395 B
JavaScript
16 lines
395 B
JavaScript
import isArguments from './isArguments';
|
|
import isArray from './isArray';
|
|
|
|
/**
|
|
* Checks if `value` is a flattenable `arguments` object or array.
|
|
*
|
|
* @private
|
|
* @param {*} value The value to check.
|
|
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
*/
|
|
function isFlattenable(value) {
|
|
return isArray(value) || isArguments(value);
|
|
}
|
|
|
|
export default isFlattenable;
|