Skip to main content
Module

x/rambda/head.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function head(listOrString){ if (typeof listOrString === 'string') return listOrString[ 0 ] || ''
return listOrString[ 0 ]}