UNPKG

motion

Version:

motion - moving development forward

15 lines (12 loc) 358 B
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;