diff options
| -rw-r--r-- | index.js | 2 | ||||
| -rw-r--r-- | lib/company.js | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -43,7 +43,7 @@ exports.definitions = {}; var _definitions = { "name": ["first_name", "last_name", "prefix", "suffix", "title"], "address": ["city_prefix", "city_suffix", "street_suffix", "county", "country", "state", "state_abbr"], - "company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb"], + "company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb", "suffix"], "lorem": ["words"], "hacker": ["abbreviation", "adjective", "noun", "verb", "ingverb"], "phone_number": ["formats"], 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) { |
