Skip to main content
Module

x/rambda/join.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { join } from './join'
test('curry', () => { expect(join('|')([ 'foo', 'bar', 'baz' ])).toEqual('foo|bar|baz')
expect(join('|', [ 1, 2, 3 ])).toEqual('1|2|3')
const spacer = join(' ')
expect(spacer([ 'a', 2, 3.4 ])).toEqual('a 2 3.4')})