Use Number.isInteger
This commit is contained in:
		
							parent
							
								
									663d676f23
								
							
						
					
					
						commit
						e5ec50dc53
					
				| @ -25,7 +25,7 @@ const formatBytes = (bytes, decimals = 2) => { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| const isInt = (value) => { | const isInt = (value) => { | ||||||
|     return !isNaN(value) && ((x) => (x | 0) === x)(parseFloat(value)) |     return Number.isInteger(value); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export { | export { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user