UNPKG

moy-fp

Version:
18 lines (15 loc) 314 B
import __ from '../../src/Function/__' /** * [a] -> [a] */ import tailList from '../../src/List/tailList' test('tailList(not using __)', () => { expect( tailList([1, 2, 3, 4]) ).toEqual([2, 3, 4]) }) test('tailList(using __)', () => { expect( tailList(__)([1, 2, 3, 4]) ).toEqual([2, 3, 4]) })