x/rambda/allType.js
1234567891011121314151617import { 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 }}