Files
lodash/_toArrayLikeObject.js
John-David Dalton bbd78fee4d Bump to v4.1.0.
2016-01-29 08:30:29 -08:00

15 lines
357 B
JavaScript

var isArrayLikeObject = require('./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 : [];
}
module.exports = toArrayLikeObject;