1.0.0 • Published 5 years ago
@asmartbear/between v1.0.0
Between
Generates a string that sorts between two other strings.
Useful for things like CRDT
Usage
import { between } from '@asmartbear/between';
let foo = between( 'abcdef', 'abcdfe' );
assert( 'abcdef' < foo );
assert( 'abcdfe' > foo );
assert( 'abcdep' === foo ); // this might not be the exact string, but something like this