UNPKG

rambdax

Version:

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

17 lines (13 loc) 280 B
import { type } from './type.js' export function allType(targetType){ return (...inputs) => { let counter = 0 while (counter < inputs.length){ if (type(inputs[ counter ]) !== targetType){ return false } counter++ } return true } }