mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
15
.internal/isFlattenable.js
Normal file
15
.internal/isFlattenable.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import isArguments from './isArguments.js';
|
||||
|
||||
/**
|
||||
* 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 Array.isArray(value) || isArguments(value) ||
|
||||
!!(Symbol.isConcatSpreadable && value && value[spreadableSymbol]);
|
||||
}
|
||||
|
||||
export default isFlattenable;
|
||||
Reference in New Issue
Block a user