Update index.ts

This commit is contained in:
Sindre Sorhus 2021-04-22 15:58:46 +07:00 committed by GitHub
parent ac83b78dbf
commit 32c2750103
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -630,7 +630,6 @@ export const assert: Assert = {
// Variadic functions.
any: (predicate: Predicate | Predicate[], ...values: unknown[]): void | never => {
// Remove duplicate value types using Set.
return assertType(is.any(predicate, ...values), AssertionTypeDescription.any, values, {multipleValues: true});
},
all: (predicate: Predicate, ...values: unknown[]): void | never => assertType(is.all(predicate, ...values), AssertionTypeDescription.all, values, {multipleValues: true})