diff options
| author | Marak <[email protected]> | 2015-07-06 08:41:31 -0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-07-06 08:41:31 -0700 |
| commit | 760a2c5e92011cc60286e55447e6cc168c1b86c6 (patch) | |
| tree | 62a1c2247e0c9c2e7c49e36bdabdbd763a298c73 /lib | |
| parent | 376068f29223ade15278acb75731e23db2098b0a (diff) | |
| parent | 4a5de1ab467cba4dd4b61ed5a16f6816fb7c38f9 (diff) | |
| download | faker-760a2c5e92011cc60286e55447e6cc168c1b86c6.tar.xz faker-760a2c5e92011cc60286e55447e6cc168c1b86c6.zip | |
[merge] country_code branch
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/address.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/address.js b/lib/address.js index 094f9872..261f2758 100644 --- a/lib/address.js +++ b/lib/address.js @@ -90,7 +90,11 @@ var address = { return faker.random.array_element(faker.definitions.address.country); }, - state: function () { + countryCode: function () { + return faker.random.array_element(faker.definitions.address.country_code); + }, + + state: function (useAbbr) { return faker.random.array_element(faker.definitions.address.state); }, |
