Skip to content

Clean up suggestion for methods that optionally return #19784

@allsey87

Description

@allsey87

Just wanted to ask about/point out that most methods in this library denote an optional return type by conditionally returning null in the function body. There are the following exceptions though that seem to express the same concept but instead return undefined.

  1. intersectLine from Plane
  2. getObjectById from Object3D
  3. getObjectByName from Object3D
  4. getObjectByProperty from Object3D

Is this intentional? What is the rational behind this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions