basant307/AI_Governance_Project
048
1/**2 * Gets the first element of `array`.3 *4 * @static5 * @memberOf _6 * @since 0.1.07 * @alias first8 * @category Array9 * @param {Array} array The array to query.10 * @returns {*} Returns the first element of `array`.11 * @example12 *13 * _.head([1, 2, 3]);14 * // => 115 *16 * _.head([]);17 * // => undefined18 */19function head(array) {20 return (array && array.length) ? array[0] : undefined;21}22 23export default head;24 