rudeshark.net/src/misc/is-objectid.ts

4 lines
119 B
TypeScript
Raw Normal View History

2018-10-16 04:38:09 +02:00
export default function(x: any): boolean {
return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype');
}