Skip to content

given a number or a string, returns the ranges you should be querying in the default js string collation

License

Notifications You must be signed in to change notification settings

emitdb/rangebound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status deps status

rangebound

given a number or a string, returns the ranges you should be querying in the default js string collation

assert.deepEqual(rangebound('foo'), {
  start: 'foo',
  type: 'string',
  end: 'foo' + '\ufff0'
});

assert.deepEqual(rangebound(1), {
  start: '1',
  type: 'number',
  end: '1' + '\u0000'
});

About

given a number or a string, returns the ranges you should be querying in the default js string collation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published