Skip to main content
Module

x/rambda/source/append.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {append} from './append'
test('happy', () => { expect(append('tests', ['write', 'more'])).toEqual([ 'write', 'more', 'tests', ])})
test('append to empty array', () => { expect(append('tests')([])).toEqual(['tests'])})
test('with strings', () => { expect(append('o', 'fo')).toEqual(['f', 'o', 'o'])})