Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
public open(): void {
try {
- if (this?.fd === undefined || this?.fd === null) {
+ if (Utils.isNullOrUndefined(this?.fd)) {
this.fd = fs.openSync(this.dbName, 'a+');
}
} catch (error) {
return clone<T>(object);
}
- public static objectHasOwnProperty(object: object, property: string): boolean {
+ public static objectHasOwnProperty(object: unknown, property: string): boolean {
return (
Utils.isObject(object) && (Object.prototype.hasOwnProperty.call(object, property) as boolean)
);