Skip to main content
Module

x/rambda/source/tail-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {tail} from 'rambda'
describe('R.tail', () => { it('with string', () => { const result = tail('foo')
result // $ExpectType string }) it('with list - one type', () => { const result = tail([1, 2, 3])
result // $ExpectType number[] }) it('with list - mixed types', () => { const result = tail(['foo', 'bar', 1, 2, 3])
result // $ExpectType (string | number)[] })})