Files
lodash/_toArrayLikeObject.js
John-David Dalton 7293d39642 Bump to v4.1.0.
2016-01-29 01:14:13 -08:00

16 lines
379 B
JavaScript

define(['./isArrayLikeObject'], function(isArrayLikeObject) {
/**
* Converts `value` to an array-like object if it's not one.
*
* @private
* @param {*} value The value to process.
* @returns {Array} Returns the array-like object.
*/
function toArrayLikeObject(value) {
return isArrayLikeObject(value) ? value : [];
}
return toArrayLikeObject;
});