Skip to main content
Module

x/rambda/source/anyType.spec.js

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