You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to know if the value is there in the interval ranges but the call back just passes over it if not value is found nothing returned
var createIntervalTree = require("interval-tree-1d")
//Create some random list of intervals
var intervals = [ [1, 2], [-1, 0], [0.5, 1] ]
//Build tree
var tree = createIntervalTree(intervals)
//Find all intervals containing query point 0.7
//console.log("querying point:", 0.7)
var value = tree.queryPoint(11, function(interval) {
console.log(interval); prints nothing blank
});
The text was updated successfully, but these errors were encountered:
rahulrsingh09
changed the title
How to query the queryPoint in a synchronous context
Callback not returning undefined or null if no interval matches
Sep 14, 2017
I want to know if the value is there in the interval ranges but the call back just passes over it if not value is found nothing returned
The text was updated successfully, but these errors were encountered: