diff options
| author | Andres Silva <[email protected]> | 2017-01-26 11:15:39 -0500 |
|---|---|---|
| committer | Andres Silva <[email protected]> | 2017-01-26 11:15:39 -0500 |
| commit | 2b59931cc71ca460c3221dc1a188078e72465446 (patch) | |
| tree | 57dca6db3f06653e42e24f1942e8068185fc2575 /lib | |
| parent | 484e63a791fd6874af6d7d7e6c1806cb5d325d30 (diff) | |
| download | faker-2b59931cc71ca460c3221dc1a188078e72465446.tar.xz faker-2b59931cc71ca460c3221dc1a188078e72465446.zip | |
Delete ES6
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/address.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/address.js b/lib/address.js index a6d47187..0a6f0c5b 100644 --- a/lib/address.js +++ b/lib/address.js @@ -208,7 +208,9 @@ function Address (faker) { * @param {Double} max default is 90 * @param {Double} min default is -90 */ - this.latitude = function (max = 90, min = -90) { + this.latitude = function (max, min) { + max = max || 90 + min = min || -90 return faker.random.number({max: max, min:min, precision:0.0001}).toFixed(4); } @@ -219,7 +221,9 @@ function Address (faker) { * @param {Double} max default is 180 * @param {Double} min default is -180 */ - this.longitude = function (max = 180, min = -180) { + this.longitude = function (max, min) { + max = max || 180 + min = min || -180 return faker.random.number({max: max, min:min, precision:0.0001}).toFixed(4); } |
