blob: a77c4ee2d578c6c960cae2bf4c1a804a58238842 (
plain)
1
2
3
4
5
|
import { ObjectID } from 'mongodb';
export default function(x: any): x is ObjectID {
return x && typeof x === 'object' && (x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype'));
}
|