13 lines
No EOL
340 B
JavaScript
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 || {}); |