aboutsummaryrefslogtreecommitdiff
path: root/lib/commerce.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/commerce.js')
-rw-r--r--lib/commerce.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/commerce.js b/lib/commerce.js
index 276f1698..ec91edb1 100644
--- a/lib/commerce.js
+++ b/lib/commerce.js
@@ -2,12 +2,12 @@ var Commerce = function (faker) {
var self = this;
self.color = function() {
- return faker.random.array_element(faker.definitions.commerce.color);
+ return faker.random.arrayElement(faker.definitions.commerce.color);
};
self.department = function(max, fixedAmount) {
- return faker.random.array_element(faker.definitions.commerce.department);
+ return faker.random.arrayElement(faker.definitions.commerce.department);
/*
max = max || 3;
@@ -50,7 +50,7 @@ var Commerce = function (faker) {
var categories = [];
do {
- var category = faker.random.array_element(faker.definitions.commerce.department);
+ var category = faker.random.arrayElement(faker.definitions.commerce.department);
if(categories.indexOf(category) === -1) {
categories.push(category);
}
@@ -72,15 +72,15 @@ var Commerce = function (faker) {
*/
self.productAdjective = function() {
- return faker.random.array_element(faker.definitions.commerce.product_name.adjective);
+ return faker.random.arrayElement(faker.definitions.commerce.product_name.adjective);
};
self.productMaterial = function() {
- return faker.random.array_element(faker.definitions.commerce.product_name.material);
+ return faker.random.arrayElement(faker.definitions.commerce.product_name.material);
};
self.product = function() {
- return faker.random.array_element(faker.definitions.commerce.product_name.product);
+ return faker.random.arrayElement(faker.definitions.commerce.product_name.product);
}
return self;