Last active
June 5, 2024 15:19
-
-
Save julienetie/6110385cd16514231fc9d0baaf441ff7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const isDate = value => `${value}` === `${new Date(value.valueOf())}`; | |
| const isError = value => value.toString().includes("Error") && typeof value !== "string"; | |
| const IsANaN = value => is(parseFloat(value), NaN); | |
| const isObject = value => typeof value === "object" && !isArray(value) && !is(value,null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment