Explicit deprecation logging (#979)

* Explicit deprecation logging

* Update CHANGELOG.md
This commit is contained in:
Jaco
2021-05-12 14:25:01 +02:00
committed by GitHub
parent bd047063ef
commit d63d92e488
4 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ import { isUndefined } from '../is/undefined';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function arrayFilter <T = any> (array: T[], allowNulls = true): T[] {
return array.filter((value) =>
!isUndefined(value) && (allowNulls || !isNull(value))
!isUndefined(value) &&
(allowNulls || !isNull(value))
);
}