Number.isSafeInteger() Lab

Easy
4
39.1% Acceptance

In this lab, you will work with Number.isSafeInteger() method in JavaScript. This method determines whether the provided value is a number that is a safe integer. A safe integer is an integer that can be exactly represented as a double-precision number, without losing precision.

Your task is to create a function named isSafeInt, which takes a number as an input, checks if it's a safe integer, and then returns a boolean value: true when the input number is a safe integer, and false when it's an unsafe integer. Remember to use the ESM syntax for exporting the function as a default export.