Your IP : 216.73.216.74


Current Path : /usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/compat/array/
Upload File :
Current File : //usr/local/lib/node_modules/@google/gemini-cli/node_modules/es-toolkit/dist/compat/array/head.mjs

import { head as head$1 } from '../../array/head.mjs';
import { toArray } from '../_internal/toArray.mjs';
import { isArrayLike } from '../predicate/isArrayLike.mjs';

function head(arr) {
    if (!isArrayLike(arr)) {
        return undefined;
    }
    return head$1(toArray(arr));
}

export { head };