Skip to main content
Module

x/rambda/source/allType.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {allType} from './allType'
test('when true', () => { const result = allType('Array')([1, 2, 3], [], [null])
expect(result).toBeTrue()})
test('when false', () => { const result = allType('String')(1, undefined, null, [])
expect(result).toBeFalse()})