From 9f82618bc2b57b841c4b0bdb85160f3fa0d63f31 Mon Sep 17 00:00:00 2001 From: jkillian Date: Tue, 9 Dec 2014 14:36:10 -0500 Subject: Make company suffix function use data from locale instead of hard-coded data. --- lib/company.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3