summaryrefslogtreecommitdiff
path: root/src/misc/is-objectid.ts
blob: c3148a77857ee1fd99c5a63156d20d7e4c248797 (plain)
1
2
3
4
5
import { ObjectID } from 'mongodb';

export default function(x: any): x is ObjectID {
	return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype');
}