react app

This commit is contained in:
Mario Romano
2016-04-06 17:52:19 +01:00
parent f7e6ef55a2
commit 29df96a085
4425 changed files with 446323 additions and 0 deletions

22
react-app/node_modules/lodash/internal/toIterable.js generated vendored Normal file
View 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;