lib/timed.js
function events (obj, build, compare) {
  var e = []
  forEachTime(function (time, obj) {
    e.push(build ? build(time, obj) : [time, obj])
  }, null, obj)
  return e.sort(compare || function (a, b) { return a[0] - b[0] })
}
function events (obj, build, compare) {
  var e = []
  forEachTime(function (time, obj) {
    e.push(build ? build(time, obj) : [time, obj])
  }, null, obj)
  return e.sort(compare || function (a, b) { return a[0] - b[0] })
}
function events ( obj , build , compare ) { var e = [ ] forEachTime ( function ( time , obj ) { e . push ( build ? build ( time , obj ) : [ time , obj ] ) } , null , obj ) return e . sort ( compare || function ( a , b ) { return a [ 0 ] - b [ 0 ] } ) }
Get a sorted events array from a score
Get a sorted events array from a score