2776934728
* Update is-objectid.ts * Update is-objectid.ts
6 lines
194 B
TypeScript
6 lines
194 B
TypeScript
import { ObjectID } from 'mongodb';
|
|
|
|
export default function(x: any): x is ObjectID {
|
|
return x && typeof x === 'object' && (x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype'));
|
|
}
|