Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfftdammitchris/3886e553a0cdd89220d074046eaecd2d to your computer and use it in GitHub Desktop.
Save pfftdammitchris/3886e553a0cdd89220d074046eaecd2d to your computer and use it in GitHub Desktop.
function createSignature(obj) {
if (typeof obj === 'string') {
// Do something
} else if (Array.isArray(obj)) {
// Do something
} else {
// Do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment