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

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions