source: node_modules/es-toolkit/dist/compat/array/head.mjs@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 303 bytes
Line 
1import { head as head$1 } from '../../array/head.mjs';
2import { toArray } from '../_internal/toArray.mjs';
3import { isArrayLike } from '../predicate/isArrayLike.mjs';
4
5function head(arr) {
6 if (!isArrayLike(arr)) {
7 return undefined;
8 }
9 return head$1(toArray(arr));
10}
11
12export { head };
Note: See TracBrowser for help on using the repository browser.