CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_castArrayLikeObject.js15 linesDownload Raw Back to lodash
1var isArrayLikeObject = require('./isArrayLikeObject');2 3/**4 * Casts `value` to an empty array if it's not an array like object.5 *6 * @private7 * @param {*} value The value to inspect.8 * @returns {Array|Object} Returns the cast array-like object.9 */10function castArrayLikeObject(value) {11  return isArrayLikeObject(value) ? value : [];12}13 14module.exports = castArrayLikeObject;15 
basant307/AI_Governance_Project · CoolFace