Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

oro-head

orodio4MIT1.0.0

returns the head of an array

readme

import head from "oro-head"

head([1,2,3,4,5]) // 1
head({})          // undefined
head("bob")       // "b"
head(5)           // undefined