mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
[FEATURE] add getter for a Currency's iso_code
This commit is contained in:
@@ -346,6 +346,10 @@ Currency.prototype.to_human = function(opts) {
|
||||
return this.to_json(opts);
|
||||
};
|
||||
|
||||
Currency.prototype.get_iso = function() {
|
||||
return this._iso_code;
|
||||
};
|
||||
|
||||
exports.Currency = Currency;
|
||||
|
||||
// vim:sw=2:sts=2:ts=8:et
|
||||
|
||||
Reference in New Issue
Block a user