• File: _castArrayLikeObject.js
  • Full Path: /home/awtadalkhimacom/public_html/services/node_modules/lodash/_castArrayLikeObject.js
  • Date Modified: 10/30/2025 4:29 AM
  • File size: 381 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var isArrayLikeObject = require('./isArrayLikeObject');

/**
 * Casts `value` to an empty array if it's not an array like object.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Array|Object} Returns the cast array-like object.
 */
function castArrayLikeObject(value) {
  return isArrayLikeObject(value) ? value : [];
}

module.exports = castArrayLikeObject;