setOf
Guard for sets where every value must satisfy the provided guard.
import { setOf, isString } from 'is-kit';const isStringSet = setOf(isString);isStringSet(new Set(['a', 'b'])); // trueisStringSet(new Set(['a', 1])); // false
Guard for sets where every value must satisfy the provided guard.
import { setOf, isString } from 'is-kit';const isStringSet = setOf(isString);isStringSet(new Set(['a', 'b'])); // trueisStringSet(new Set(['a', 1])); // false