Source: list/head.js

import nth from "./nth";

/**
 * Returns the first element of a list or string.
 *
 * @function
 * @param {any[]|string} list
 * @returns {any|string}
 */
const head = nth(0);

export default head;