Files
lodash/internal/toArrayLikeObject.js
John-David Dalton 8c26e6fd4c Bump to v4.0.0.
2016-01-13 01:10:19 -08:00

16 lines
380 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;
});