2c3d43e7847ef29dfe4698e883f54bb98ae84eda
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / toArrayLikeObject.js
1 var isArrayLikeObject = require('../isArrayLikeObject');
2
3 /**
4  * Converts `value` to an array-like object if it's not one.
5  *
6  * @private
7  * @param {*} value The value to process.
8  * @returns {Array} Returns the array-like object.
9  */
10 function toArrayLikeObject(value) {
11   return isArrayLikeObject(value) ? value : [];
12 }
13
14 module.exports = toArrayLikeObject;