Skip to content

[Typo] Possible typo in JSDoc string for Math.trunc(…) function (lib.es2015.core.d.ts) #63003

@MichaelZalla

Description

@MichaelZalla

⚙ Compilation target

ES2017

⚙ Library

lib.es2015.core.d.ts

Missing / Incorrect Definition

It seems like "…of the a numeric expression…" might be a typo?

    /**
     * Returns the integral part of the a numeric expression, x, removing any fractional digits.
     * If x is already an integer, the result is x.
     * @param x A numeric expression.
     */
    trunc(x: number): number;

Source: https://github.com/microsoft/TypeScript/blob/main/src/lib/es2015.core.d.ts#L175-L180

Sample Code

// N/A

Documentation Link

MDN: Math.trunc()

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