Skip to main content
Module

x/rambda/source/allType.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {type} from './type'
export function allType(targetType) { return (...inputs) => { let counter = 0
while (counter < inputs.length) { if (type(inputs[counter]) !== targetType) { return false } counter++ }
return true }}