The problem of traversal deletion of javascript array

the following is a multi-dimensional array. How to get a new array after traversing and deleting the array with item and empty lists?

            var arr = [{
                id: 1,
                name: 1,
                item: [11,12,13,14],
                lists:[17,18,18]
            },{
                id: 2,
                name: 2,
                item: [],
                lists:[]
            },{
                id: 3,
                name: 3,
                item: [13,15,16,17,18],
                lists:[]
            },{
                id: 4,
                name: 4,
                item: [],
                lists:[]
            },{
                id: 5,
                name: 5,
                item: [13,15,16,17,18],
                lists:[5,1,2,3]
            }];

the new array you want is:

        var arr = [{
            id: 1,
            name: 1,
            item: [11,12,13,14],
            lists:[17,18,18]
        },{
            id: 3,
            name: 3,
            item: [13,15,16,17,18],
            lists:[]
        },,{
            id: 5,
            name: 5,
            item: [13,15,16,17,18],
            lists:[5,1,2,3]
        }];
Mar.16,2021

   

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f5e5-4482a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f5e5-4482a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?