Skip to main content
Module

x/rambda/startsWith.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { startsWith } from './startsWith'
test('true', () => { const result = startsWith('foo', 'foo-bar')
expect(result).toBeTrue()})
test('false', () => { const result = startsWith('baz')('foo-bar')
expect(result).toBeFalse()})