Skip to main content
Module

x/rambda/source/isType.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {isType} from './isType'
const list = [1, 2, 3]
test('array', () => { expect(isType('Array', list)).toBeTruthy() expect(isType('Array')([])).toBeTruthy()})
test('promise', () => { expect(isType('Promise', Promise.resolve(1))).toBeTruthy()})