Skip to main content
Module

x/rambda/head.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { head } from './head'
test('head', () => { expect(head([ 'fi', 'fo', 'fum' ])).toEqual('fi') expect(head([])).toEqual(undefined) expect(head('foo')).toEqual('f') expect(head('')).toEqual('')})