[ 0, 1024, 1024 ]
[ 0, 512, 1024 ]
[ 512, 1024 ]
[ "424", "936" ]
var beats = ["512", "1024", "1536"]
var beat = '600'
beats = beats.filter(item => +item - +beat <= 0)
console.log(beats)
var beats = ["512", "1024", "1536"]
var beat = '600'
beats = beats.filter(item => +item - +beat >= 0)
console.log(beats)
var beats = ["512", "1024", "1536"]
var beat = '600'
let filteredBeats = beats.map(item => (+item - +beat).toString()).filter(item => +item >= 0)
console.log(filteredBeats)