* Change NumericDictionaryIterator's "key" to type "string"
* Finish updating unit tests
* Improve support of NumericDictionary.
* Update signature overloads of many methods.
* Improve many unit tests.
* Fix some mapValues overloads
* Revert changes to V3 files
* Improve _.omit to fully support Dictionary and NumericDictionary
* Remove unused DictionaryIterator typedefs
* Improve signatures of mapValues and add tons of unit tests
* Remove _.sample overloads that did not potentially return undefined.
* Simplify definition of "AnyKindOfDictionary"
* Fix one of the _.mapValues overloads
* Delete unnecessary/incorrect comments
* Improve _.forEach unit tests
* Clean up unit tests for mapValues
* Clean up unit tests for _.map
* Add more NumericDictionary test coverage
* Fix _.map to accept a PropertyPath param instead of just a string.
* Re-add DictionaryIterator and NumericDictionaryIterator definitions
for backward compatibility.
* Revert change to support PropertyPath in _.map
* Comment out parts of _.forEach tests that fail in TS 2.4
* Fix _.unionBy tests for TS 2.3
* Comment out _.mapKeys tests that break in TS 2.4
* Comment out parts of _.forEach tests that fail in TS 2.4 (again)
* Fix _.xor test that was broken in TS 2.3
* Comment out parts of _.map tests that fail in TS 2.4
* Remove invalid tests for _.some
* Remove "object" type from definition of ObjectIterateeCustom
* Comment out _.pick tests broken in TS 2.4
Here is the code for the two functions of iban@1.3.0:
https://github.com/arhs/iban.js/blob/master/iban.js#L359
/**
* Convert an IBAN to a BBAN.
*
* @param iban
* @param {String} [separator] the separator to use between the blocks of the BBAN, defaults to ' '
* @returns {string|*}
*/
exports.toBBAN = function(iban, separator){
if (typeof separator == 'undefined'){
separator = ' ';
}
iban = electronicFormat(iban);
var countryStructure = countries[iban.slice(0,2)];
if (!countryStructure) {
throw new Error('No country with code ' + iban.slice(0,2));
}
return countryStructure.toBBAN(iban, separator);
};
exports.printFormat = function(iban, separator){
if (typeof separator == 'undefined'){
separator = ' ';
}
return electronicFormat(iban).replace(EVERY_FOUR_CHARS, "$1" + separator);
};