Skip to content

Reduce ambiguity in code writing #463

@paulincai

Description

@paulincai

Mongo.Collection.prototype[methodName] = function (...args) {

At line 219 and 220 among the parameters "args" is used in both functions and the initialization on line 220 does not use "const" or "let".
It is hard to follow the scope of various variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions