Update index.ts

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

View file

@ -388,7 +388,7 @@ is.any = (predicate: Predicate | Predicate[], ...values: unknown[]): boolean =>
is.all = (predicate: Predicate, ...values: unknown[]): boolean => predicateOnArray(Array.prototype.every, predicate, values);
const assertType = (condition: boolean, description: string, value: unknown, options: { multipleValues?: boolean } = {}): asserts condition => {
const assertType = (condition: boolean, description: string, value: unknown, options: {multipleValues?: boolean} = {}): asserts condition => {
if (!condition) {
const {multipleValues} = options;
const valuesMessage = multipleValues ?