{"_id":"ltgt","_rev":"346377","name":"ltgt","description":"implement correct ranges for level-*","dist-tags":{"latest":"2.2.1"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"time":{"modified":"2021-06-20T02:41:08.000Z","created":"2014-05-29T17:50:49.691Z","2.2.1":"2018-03-25T21:26:14.791Z","2.2.0":"2017-05-17T16:24:10.983Z","2.1.3":"2016-11-07T21:23:14.603Z","2.1.2":"2015-09-12T21:54:47.662Z","2.1.1":"2015-09-09T06:30:27.254Z","2.1.0":"2015-02-19T23:40:51.762Z","2.0.0":"2014-10-09T15:12:26.637Z","1.2.0":"2014-10-09T14:10:40.039Z","1.1.0":"2014-10-09T13:39:55.289Z","1.0.2":"2014-05-29T19:58:11.580Z","1.0.1":"2014-05-29T19:08:08.899Z","1.0.0":"2014-05-29T17:50:49.691Z"},"users":{},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"versions":{"2.2.1":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.2.1","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"prepublish":"npm ls && node test.js","test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"2083704480f15ba7bb2a634a7e4255bc1d74a053","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.2.1","_shasum":"f35ca91c493f7b73da0e07495304f17b31f87ee5","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.5.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"f35ca91c493f7b73da0e07495304f17b31f87ee5","size":5086,"noattachment":false,"key":"/ltgt/-/ltgt-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.2.1.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ltgt_2.2.1_1522013174666_0.2217931971642697"},"_hasShrinkwrap":false,"publish_time":1522013174791,"_cnpm_publish_time":1522013174791},"2.2.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.2.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"prepublish":"npm ls && node test.js","test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"b7888f5457258f5ed7640c66ee6efa2024ffc926","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.2.0","_shasum":"b65ba5fcb349a29924c8e333f7c6a5562f2e4842","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"b65ba5fcb349a29924c8e333f7c6a5562f2e4842","size":5101,"noattachment":false,"key":"/ltgt/-/ltgt-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.2.0.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ltgt-2.2.0.tgz_1495038250733_0.29555000038817525"},"directories":{},"publish_time":1495038250983,"_cnpm_publish_time":1495038250983,"_hasShrinkwrap":false},"2.1.3":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.1.3","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"prepublish":"npm ls && node test.js","test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"9bcc2134a8918d52aa77fc5749238186b2800c0d","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.1.3","_shasum":"10851a06d9964b971178441c23c9e52698eece34","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.4.0","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"10851a06d9964b971178441c23c9e52698eece34","size":4773,"noattachment":false,"key":"/ltgt/-/ltgt-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.1.3.tgz"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ltgt-2.1.3.tgz_1478553792506_0.021263495553284883"},"directories":{},"publish_time":1478553794603,"_cnpm_publish_time":1478553794603,"_hasShrinkwrap":false},"2.1.2":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.1.2","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"prepublish":"npm ls && node test.js","test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"b487fb389c94f55cfb3d078955367a56e8fcb0d3","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.1.2","_shasum":"e7472324fee690afc0d5ecf900403ce5788a311d","_from":".","_npmVersion":"3.3.1","_nodeVersion":"2.3.1","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"e7472324fee690afc0d5ecf900403ce5788a311d","size":4667,"noattachment":false,"key":"/ltgt/-/ltgt-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.1.2.tgz"},"directories":{},"publish_time":1442094887662,"_cnpm_publish_time":1442094887662,"_hasShrinkwrap":false},"2.1.1":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.1.1","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"prepublish":"npm ls && node test.js","test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"b7bc27add6fcf6cb9b7137fb57c418e7a0515138","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.1.1","_shasum":"95058698370c909512b1bd4eaba39f70522ac91a","_from":".","_npmVersion":"3.3.1","_nodeVersion":"2.3.1","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"95058698370c909512b1bd4eaba39f70522ac91a","size":4730,"noattachment":false,"key":"/ltgt/-/ltgt-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.1.1.tgz"},"directories":{},"publish_time":1441780227254,"_cnpm_publish_time":1441780227254,"_hasShrinkwrap":false},"2.1.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.1.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"8f33d99771a98081edd6016e22bca573591cb950","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.1.0","_shasum":"4c6d1a43452b1c1c6b712961a3f7bd61247ec7ec","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"4c6d1a43452b1c1c6b712961a3f7bd61247ec7ec","size":4490,"noattachment":false,"key":"/ltgt/-/ltgt-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.1.0.tgz"},"directories":{},"publish_time":1424389251762,"_cnpm_publish_time":1424389251762,"_hasShrinkwrap":false},"2.0.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"2.0.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"1676e336293eb16e79181a4cc4a608064d105556","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@2.0.0","_shasum":"b40ed1e337caf577c0a963f9cffbc680318009c2","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"b40ed1e337caf577c0a963f9cffbc680318009c2","size":4439,"noattachment":false,"key":"/ltgt/-/ltgt-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-2.0.0.tgz"},"directories":{},"publish_time":1412867546637,"_cnpm_publish_time":1412867546637,"_hasShrinkwrap":false},"1.2.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"1.2.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"c7ef3424abac629abd9075e4c1a30c1afd70aeb0","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@1.2.0","_shasum":"617707dc39f38294415e66a02f3c2705ac407866","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"617707dc39f38294415e66a02f3c2705ac407866","size":4234,"noattachment":false,"key":"/ltgt/-/ltgt-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-1.2.0.tgz"},"directories":{},"publish_time":1412863840039,"_cnpm_publish_time":1412863840039,"_hasShrinkwrap":false},"1.1.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"1.1.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"146ca5d4a4b2ed90bbacbcc2fb9fecdd5adf1b33","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@1.1.0","_shasum":"1106ef0a3a35de867028573962ec55bff30a6132","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"1106ef0a3a35de867028573962ec55bff30a6132","size":4191,"noattachment":false,"key":"/ltgt/-/ltgt-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-1.1.0.tgz"},"directories":{},"publish_time":1412861995289,"_cnpm_publish_time":1412861995289,"_hasShrinkwrap":false},"1.0.2":{"name":"ltgt","description":"implement correct ranges for level-*","version":"1.0.2","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"29e8204585b43b1a23be08288699ae18f7c9b8e8","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@1.0.2","_shasum":"e6817eb29ad204fc0c9e96ef8b0fee98ef6b9aa3","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"e6817eb29ad204fc0c9e96ef8b0fee98ef6b9aa3","size":3767,"noattachment":false,"key":"/ltgt/-/ltgt-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-1.0.2.tgz"},"directories":{},"publish_time":1401393491580,"_cnpm_publish_time":1401393491580,"_hasShrinkwrap":false},"1.0.1":{"name":"ltgt","description":"implement correct ranges for level-*","version":"1.0.1","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"63e6996e7d846c93f6c9a7633869d56595062235","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@1.0.1","_shasum":"2f36242e742b3a8dc402dddcf8c16a4bacac361a","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"2f36242e742b3a8dc402dddcf8c16a4bacac361a","size":3544,"noattachment":false,"key":"/ltgt/-/ltgt-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-1.0.1.tgz"},"directories":{},"publish_time":1401390488899,"_cnpm_publish_time":1401390488899,"_hasShrinkwrap":false},"1.0.0":{"name":"ltgt","description":"implement correct ranges for level-*","version":"1.0.0","homepage":"https://github.com/dominictarr/ltgt","repository":{"type":"git","url":"git://github.com/dominictarr/ltgt.git"},"dependencies":{},"devDependencies":{"tape":"~2.13.1"},"scripts":{"test":"node test.js"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","testling":{"files":"test.js","browsers":["ie/8..latest","firefox/17..latest","firefox/nightly","chrome/22..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"4efbdb35851f0cff59ac4567f9eda38e9aeac74f","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"_id":"ltgt@1.0.0","_shasum":"725f9e9ae46ee4983acb616dc018eac617af3ad3","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"dist":{"shasum":"725f9e9ae46ee4983acb616dc018eac617af3ad3","size":3396,"noattachment":false,"key":"/ltgt/-/ltgt-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ltgt/download/ltgt-1.0.0.tgz"},"directories":{},"publish_time":1401385849691,"_cnpm_publish_time":1401385849691,"_hasShrinkwrap":false}},"readme":"# ltgt\n\nimplement correct ranges for level-*\n\n[![build status](https://secure.travis-ci.org/dominictarr/ltgt.png)](http://travis-ci.org/dominictarr/ltgt)\n[![testling badge](https://ci.testling.com/dominictarr/ltgt.png)](https://ci.testling.com/dominictarr/ltgt)\n\n# example\n\n\n``` js\nvar ltgt = require('ltgt')\n\nltgt.start(range) //the start of the range\nltgt.end(range)   //the end of the range\n\n//returns the lower/upper bound, whether it's inclusive or not.\nltgt.lowerBound(range)\nltgt.upperBound(range)\n\nltgt.lt(range)\nltgt.gt(range)\nltgt.lte(range)\nltgt.gte(range)\n\n//return wether this is a reversed order\n//(this is significant for start/end ranges\nltgt.reverse(range)\nvar filter = ltgt.filter(range)\n\nfilter(key) == true //if key contained in range.\n\nltgt.contains(range, key)\n\n```\n\n# ways to specify ranges\n\nthere have been a variety of ways to specify ranges in level-*.\nthis module supports them all.\n\n# gt/gte, lt/lte\n\nspecify a range between a lower bound (gt, gte) and an upper bound (lt, lte)\n\nif `gte` and `gt` is undefined, read from the start of the database,\nif `lte` and `lt` is undefined, read until the end of the database,\n\n\n# min, max\n\nlegacy level-sublevel style,\nsynonym for `gte`, `lte`.\n\n# start, end, reverse\n\nlegacy levelup style.\n\nThe range is from `start` -> `end`, `start` does not specify the lowest\nrecord, instead it specifies the first record to be read. However,\n`reverse` must also be passed correctly. This is way to specify a range is\nconfusing if you need to read in reverse,\nso it's strongly recommended to use `gt/gte,lt/lte`.\n\nIf `reverse` is `true`,\n`start` *must* be `undefined` or less than `end`,\nunless `end` is `undefined`.\n\nif `reverse` is `false`\n`end` *must* be `undefined` or greater than `start`,\nunless `start` is `undefined`.\n\nif start is undefined, read from the first record in the database\nif end is undefined read until the last record in the database.\n\n# api\n\n## ltgt.contains(range, key, compare)\n\nusing the provided compare method, return `true` if `key`\nis within `range`. compare defaults to `ltgt.compare`\n\n## ltgt.filter(range, compare)\n\nreturn a function that returns true if it's argument is within range.\ncan be passed to `Array.filter`\n\n``` js\n[1,2,3,4,5].filter(ltgt.filter({gt: 2, lte: 4})\n// => [3, 4]\n```\n\n## ltgt.lowerBound(range)\n\nreturn the lower bound of `range`.\nIncase the lower bound is specified with `gt`,\ncheck `ltgt.lowerBoundExclusive`\n\n## ltgt.upperBound(range)\n\nreturn the upperBound of `range`.\nIncase the upper bound is specified with `gt`,\ncheck `ltgt.upperBoundExclusive`\n\n## ltgt.lowerBoundExclusive(range)\n\nreturn true if upper bound is exclusive.\n\n## ltgt.upperBoundExclusive(range)\n\nreturn true if lower bound is exclusive.\n\n## ltgt.start(range, default)\n\nThe start of the range. This takes into account direction (reverse)\nIf a `start` is not provided, `default` is used.\n\n## ltgt.end(range, default)\n\nThe end of the range. This takes into account direction (reverse)\nIf a `end` is not provided, `default` is used.\n\n## ltgt.startInclusive(range)\n\nreturns true if the range should start at the exact value returned\nby `start(range)` otherwise, it should skip one input.\n\n## ltgt.endInclusive(range)\n\nreturns true if the range should include the exact value returned\nby `end(range)` otherwise, it should end on that value.\n\n## ltgt.toLtgt(range, _range, map, lowerBound, upperBound)\n\nconvert a range to a new ltgt range. `_range`\nis the object to return - if you want to mutate `range`\ncall `ltgt.toLtgt(range, range, map)`\n\n`map` gets called on each key in the range, and wether it's an upper or lower bound -\nso can be used as an encode function.\n\n`map(value, isUpperBound)` if `isUpperBound` is false, this is the lower bound.\n\n## License\n\nMIT\n\n\n\n\n","_attachments":{},"homepage":"https://github.com/dominictarr/ltgt","bugs":{"url":"https://github.com/dominictarr/ltgt/issues"},"license":"MIT"}