Function calculateObjectSize

  • Calculate the bson size for a passed in Javascript object.

    Parameters

    Returns number

    size of BSON object in bytes