banking-bot/BankingBot/ScriptManagement/Scripts/Helpers/account-helpers.js
2017-02-10 19:58:10 +00:00

13 lines
No EOL
340 B
JavaScript

var accountHelpers = (function (module) {
module.splitCardNumber = function (cardNumber) {
return [
cardNumber.substring(0, 4),
cardNumber.substring(4, 8),
cardNumber.substring(8, 12),
cardNumber.substring(12, 16)
];
}
return module;
})(accountHelpers || {});