diff options
| author | jkillian <[email protected]> | 2014-12-09 14:36:10 -0500 |
|---|---|---|
| committer | jkillian <[email protected]> | 2014-12-09 14:36:10 -0500 |
| commit | 9f82618bc2b57b841c4b0bdb85160f3fa0d63f31 (patch) | |
| tree | aa530023dc70513063100143317a72148ab75853 /lib | |
| parent | daa9f442797525c9547c329665b4e9107b41d375 (diff) | |
| download | faker-9f82618bc2b57b841c4b0bdb85160f3fa0d63f31.tar.xz faker-9f82618bc2b57b841c4b0bdb85160f3fa0d63f31.zip | |
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) { |
