diff options
| author | Marak <[email protected]> | 2015-07-04 22:28:12 -0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-07-04 22:28:12 -0700 |
| commit | b7ec97c93d56145b980dbdaf08d0118e10abc7ff (patch) | |
| tree | d25025d2c0d8a96f5197333644f6d891dbcb6de7 /lib | |
| parent | 24536095abdc41fb2741f6e6bfec7f6aea65ca22 (diff) | |
| parent | 9f82618bc2b57b841c4b0bdb85160f3fa0d63f31 (diff) | |
| download | faker-b7ec97c93d56145b980dbdaf08d0118e10abc7ff.tar.xz faker-b7ec97c93d56145b980dbdaf08d0118e10abc7ff.zip | |
Merge pull request #149 from JKillian/CompanySuffixLocale
[api] [fix] Make company suffix function use data from locale instead of hard-coded data
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/company.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/company.js b/lib/company.js index 05797c3d..ee248d48 100644 --- a/lib/company.js +++ b/lib/company.js @@ -3,7 +3,8 @@ var faker = require('../index'); var company = { suffixes: function () { - return ["Inc", "and Sons", "LLC", "Group", "and Daughters"]; + // Don't want the source array exposed to modification, so return a copy + return faker.definitions.company.suffix.slice(0); }, companyName: function (format) { |
