Class: Code

Code

A class representation of the BSON Code type.

Name Type Description
code string | function

a string or function.

scope Object optional

an optional scope for the function.