diff options
| author | MQuy <[email protected]> | 2014-09-08 11:42:46 +0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2014-09-09 01:22:26 +0200 |
| commit | fa8267f2ce1a41a2684f10c5e2109faff837a0f9 (patch) | |
| tree | 295cec8c4170c3cf763e4e7d0c3361271a86baf1 /lib/random.js | |
| parent | 3caea6078c05dd7caaffa4d2fd362ebe084168f9 (diff) | |
| download | faker-fa8267f2ce1a41a2684f10c5e2109faff837a0f9.tar.xz faker-fa8267f2ce1a41a2684f10c5e2109faff837a0f9.zip | |
add faker for phone code
Conflicts:
lib/definitions.js
Diffstat (limited to 'lib/random.js')
| -rw-r--r-- | lib/random.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/random.js b/lib/random.js index c96acaf9..c7386733 100644 --- a/lib/random.js +++ b/lib/random.js @@ -97,6 +97,9 @@ var random = { return faker.random.array_element(definitions.phone_formats); }, + phone_codes: function () { + return this.array_element(definitions.phone_codes); + }, domain_suffix: function () { return faker.random.array_element(definitions.domain_suffix); }, |
