code: function(number) {
        if (typeof number !== 'string') {
          throw new TypeError('cardNumber must be a string!');
        }
  
        var cardNumber = number.trim().replace(/\s/g, '');
  
        return new Card(cardNumber);
      }
docs: /*
  card.js v0.0.1
  A JavaScript library for card type detection.
  https://github.com/coffeedriven/cardjs/
  Copyright (c) 2015 Maciej Dzikowicki <mdzikowicki@gmail.com>
  MIT Licence