diff options
| author | Joel Fillmore <[email protected]> | 2013-03-19 22:48:39 -0700 |
|---|---|---|
| committer | Joel Fillmore <[email protected]> | 2013-03-19 22:48:39 -0700 |
| commit | a0d1eb56a3b8fe4bcc5ab4bf244b7cb8ee4b78d7 (patch) | |
| tree | a9de4e578cb20c17ebd0ddcc738cb772349acc0e /lib/lorem.js | |
| parent | d1ca803c370fa596db77f03f2c8424167e21b52d (diff) | |
| download | faker-a0d1eb56a3b8fe4bcc5ab4bf244b7cb8ee4b78d7.tar.xz faker-a0d1eb56a3b8fe4bcc5ab4bf244b7cb8ee4b78d7.zip | |
Improve perf by declaring definitions as arrays
Diffstat (limited to 'lib/lorem.js')
| -rw-r--r-- | lib/lorem.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lorem.js b/lib/lorem.js index 9e1e8e1c..7010fca9 100644 --- a/lib/lorem.js +++ b/lib/lorem.js @@ -5,7 +5,7 @@ var definitions = require('../lib/definitions'); var lorem = { words: function (num) { if (typeof num == 'undefined') { num = 3; } - return Helpers.shuffle(definitions.lorem()).slice(0, num); + return Helpers.shuffle(definitions.lorem).slice(0, num); }, sentence: function (wordCount) { |
