Skip to main content
Module

x/rambda/split-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {split} from 'rambda'
const str = 'foo|bar|baz'const splitChar = '|'
describe('R.split', () => { it('happy', () => { const result = split(splitChar, str)
result // $ExpectType readonly string[] }) it('curried', () => { const result = split(splitChar)(str)
result // $ExpectType readonly string[] })})