Skip to content

Instantly share code, notes, and snippets.

Giovanni Thenstead thensg

  • NYC
Block or report user

Report or block thensg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thensg
thensg / luhn-checksum.js
Last active Mar 20, 2018
Calculate or verify a Luhn (Mod10) checksum
View luhn-checksum.js
/**
* Calculate a Luhn (Mod10) checksum
* -or-
* Verify the Luhn checksum of a credit card or IMEI number
*
* This implementation was adapted from the following sources:
* - https://en.wikipedia.org/w/index.php?title=Luhn_algorithm&oldid=688221366
* - https://gist.github.com/ShirtlessKirk/2134376
*/
You can’t perform that action at this time.