diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-16 11:38:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-16 11:38:09 +0900 |
| commit | 9427a756c9e4a1d95210ccfca56fdb67d62183ec (patch) | |
| tree | 667cf5f4d6ecf80d0e3a22c4085a410537d1dc9d /src/misc/is-objectid.ts | |
| parent | fix(package): update @types/node to version 10.12.0 (#2912) (diff) | |
| download | misskey-9427a756c9e4a1d95210ccfca56fdb67d62183ec.tar.gz misskey-9427a756c9e4a1d95210ccfca56fdb67d62183ec.tar.bz2 misskey-9427a756c9e4a1d95210ccfca56fdb67d62183ec.zip | |
Update mongodb
Diffstat (limited to 'src/misc/is-objectid.ts')
| -rw-r--r-- | src/misc/is-objectid.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc/is-objectid.ts b/src/misc/is-objectid.ts new file mode 100644 index 0000000000..8c1aabd568 --- /dev/null +++ b/src/misc/is-objectid.ts @@ -0,0 +1,3 @@ +export default function(x: any): boolean { + return x.hasOwnProperty('toHexString') || x.hasOwnProperty('_bsontype'); +} |