UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

10 lines (7 loc) 178 B
import { type } from './type.js' export function isType(xType, x){ if (arguments.length === 1){ return xHolder => isType(xType, xHolder) } return type(x) === xType }