编辑代码

//JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
console.log("Hello world!            -  js.jsrun.net ");

var arr = [
	{
		options:[
			{
				name:'abcd'
			},
			{
				name:'duio'
			},
			{
				name:'a6851'
			}
		]
	},
	{
		options:[
			{
				name:'abcd'
			},
			{
				name:'63265841'
			}
		]
	}
]

console.log('--------------', arr)


console.log(arr.map(item => {
    return {
        options: item.options.filter(it => it.name.includes('a'))
    }
}))