js 从对象删掉几个key

1、

        const arr1 = Object.entries(values).filter(ele => !ele[0].includes('discount_value') && !ele[0].includes('discount_time'))

        const targetObj= Object.fromEntries(arr1)

2、

3、

4、

 5、

6、

lodash  _.pick

原文地址:https://www.cnblogs.com/dhjy123/p/15357231.html