This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/array/head.mjs
T

13 lines
303 B
JavaScript

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 };