我有以下对象数组:
[
{
"id": "line-23746045",
"line_top": 543,
"line_bottom": 521
},
{
"id": "line-23746033",
"line_top": 132,
"line_bottom": 110
},
{
"id": "line-23746031",
"line_top": 138,
"line_bottom": 116
},
{
"id": "line-23746029",
"line_top": 143,
"line_bottom": 121
}
]
我只需要返回那些在line_top和line_bottom之间重叠的.在上面的数组中,"line-23746045"没有重叠,所以我想返回一个数组:
[
{
"id": "line-23746033",
"line_top": 132,
"line_bottom": 110
},
{
"id": "line-23746031",
"line_top": 138,
"line_bottom": 116
},
{
"id": "line-23746029",
"line_top": 143,
"line_bottom": 121
}
]