Comparing version 0.1.1 to 0.2.0
@@ -56,3 +56,5 @@ 'use strict'; | ||
function between(a, b) { | ||
function between() { | ||
var a = arguments[0] === undefined ? between.lo : arguments[0]; | ||
var b = arguments[1] === undefined ? between.hi : arguments[1]; | ||
var bypassCheck = arguments[2] === undefined ? false : arguments[2]; | ||
@@ -69,2 +71,3 @@ | ||
var guard = a.length + b.length; | ||
var guard2 = Math.max(a.length, b.length); | ||
@@ -77,6 +80,4 @@ while (i <= guard) { | ||
i++; | ||
var c = chars[_a + 1 < _b || i >= guard2 ? Math.round((_a + _b) / 2) : _a]; | ||
var c = chars[_a + 1 < _b ? Math.round((_a + _b) / 2) : _a]; | ||
betweenString += c; | ||
@@ -87,2 +88,4 @@ | ||
} | ||
i++; | ||
} | ||
@@ -89,0 +92,0 @@ |
{ | ||
"name": "between2", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "generate arbitary strings that sort between two strings. fork of between.", | ||
@@ -5,0 +5,0 @@ "main": "modules/index.js", |
@@ -66,5 +66,8 @@ # between2 [![Build Status](https://travis-ci.org/Dashed/between2.svg)](https://travis-ci.org/Dashed/between2) | ||
## Credit | ||
Cheers to [@dominictarr](https://github.com/dominictarr) who created the original [`between`](https://github.com/dominictarr/between) module. | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11071
5
155
73