Skip to content

Instantly share code, notes, and snippets.

@julienetie
Last active June 5, 2024 15:19
Show Gist options
  • Select an option

  • Save julienetie/6110385cd16514231fc9d0baaf441ff7 to your computer and use it in GitHub Desktop.

Select an option

Save julienetie/6110385cd16514231fc9d0baaf441ff7 to your computer and use it in GitHub Desktop.
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