Page Contents

Home > @loopback/repository > isBsonType

isBsonType() function

Checks if the value is BsonType (mongodb) It uses a general way to check the type ,so that it can detect different versions of bson that might be used in the code base. Might need to update in the future.


export declare function isBsonType(value: unknown): value is object;


Parameter Type Description
value unknown  


value is object