Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.14 KB

File metadata and controls

54 lines (44 loc) · 1.14 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs ms.assetid caps.latest.revision author ms.author manager
Number.isInteger Function (Number) (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
devlang-javascript
language-reference
JavaScript
TypeScript
DHTML
54fcf68c-0067-4bad-af94-d7ff8c88914a
2
mikejo5000
mikejo
ghogen

Number.isInteger Function (Number) (JavaScript)

Returns a Boolean value that indicates whether a value is an integer.

Syntax

Number.isInteger(numValue)   

Return Value

true if the value is an integer, otherwise false.

Remarks

Requirements

[!INCLUDEjsv12]

Applies To: Number Object

Example

// Returns true  
Number.isInteger(100)  
Number.isInteger(-100)  
  
// Returns false  
Number.isInteger(Number.NaN)  
Number.isInteger(Infinity)  
Number.isInteger(100 / 3)  
Number.isInteger("100")