Fix using is.array in is.all (#125)

This commit is contained in:
Arnovsky 2020-08-21 15:18:34 -07:00 committed by GitHub
parent 5feadcb0b8
commit d8ced89efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -170,7 +170,7 @@ is.array = <T = unknown>(value: unknown, assertion?: (value: T) => value is T):
return false;
}
if (!assertion) {
if (!is.function_(assertion)) {
return true;
}