mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Update is-objectid.ts (#4277)
* Update is-objectid.ts * Update is-objectid.ts
This commit is contained in:
parent
23a86049dd
commit
527cce33e6
@ -1,5 +1,5 @@
|
||||
import { ObjectID } from 'mongodb';
|
||||
|
||||
export default function(x: any): x is ObjectID {
|
||||
return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype');
|
||||
return x && typeof x === 'object' && (x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype'));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user