deno.land / x / rambda@v9.1.1 / source / head.spec.js
123456789import { head } from './head.js'
test('head', () => { expect(head([ 'fi', 'fo', 'fum' ])).toBe('fi') expect(head([])).toBeUndefined() expect(head('foo')).toBe('f') expect(head('')).toBe('')})
Version Info