mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
22
react-app/node_modules/lodash/internal/toIterable.js
generated
vendored
Normal file
22
react-app/node_modules/lodash/internal/toIterable.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var isArrayLike = require('./isArrayLike'),
|
||||
isObject = require('../lang/isObject'),
|
||||
values = require('../object/values');
|
||||
|
||||
/**
|
||||
* Converts `value` to an array-like object if it's not one.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to process.
|
||||
* @returns {Array|Object} Returns the array-like object.
|
||||
*/
|
||||
function toIterable(value) {
|
||||
if (value == null) {
|
||||
return [];
|
||||
}
|
||||
if (!isArrayLike(value)) {
|
||||
return values(value);
|
||||
}
|
||||
return isObject(value) ? value : Object(value);
|
||||
}
|
||||
|
||||
module.exports = toIterable;
|
Reference in New Issue
Block a user