Skip to main content
Module

x/rambda/source/head.spec.js

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