Skip to main content
Module

x/rambda/head-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {head} from 'rambda'
describe('R.head', () => { it('string', () => { const result = head('foo') result // $ExpectType string }) it('array', () => { const result = head([1, 2, 3]) result // $ExpectType number | undefined })})