Skip to content

isObjectID

@tsed/core

Usage

typescript
import { isObjectID } from "@tsed/core";

See /packages/core/src/utils/isMongooseObject.ts.

Overview

ts
function isObjectID(obj: any): boolean;

Description

Checks if an object is a MongoDB ObjectID by verifying the _bsontype property.

Released under the MIT License.