当前位置:网站首页>(JS)筛选出对象中value大于2的key
(JS)筛选出对象中value大于2的key
2022-06-29 09:57:00 【不愿透露姓名的余菜鸟】
var obj = {
"a":1,
"b":2,
"c":3,
"d":4,
"e":5,
"f":6
}
let c = Object.values(obj);
let key = Object.keys(obj);
let x = key.filter(item=>{
return obj[item]>2;
});

边栏推荐
猜你喜欢

任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过

全面理解MESI缓存一致性协议

AQS之BlockingQueue源码解析

QT writing IOT management platform 37- logic design

Mongodb tutorial Chapter 02 mongodb installation

With this tool, automatic identification and verification code is no longer a problem

Buuctf-- happy New Year

软件测试模型(V模型和W模型)

免费送书啦!畅销书《 OpenCV图像处理入门与实践》一本全搞定

打印1000~2000年之间的闰年(C语言)
随机推荐
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
由ASP.NET Core根据路径下载文件异常引发的探究
8年打磨,《游戏设计梦工厂》发布史诗级更新!
Qt编写物联网管理平台37-逻辑设计
每日刷题记录 (七)
基于STM32+RFID设计的宿舍检修管理系统
Stm32f1 and stm32subeide programming example - ultrasonic distance sensor drive
Print 9*9 multiplication formula table (C language)
Mongodb tutorial Chapter 02 mongodb installation
Essential for efficient work: how can testers improve their communication skills?
Numeric Keypad
By asp Net core downloading files according to the path
stream流(Collectors)用法
【C语言进阶】通讯录实现
Buuctf-- connotative software
FreeRTOS porting of official website based on keil5 auto configuring STM32F103 standard library
1- database understanding
全面理解Synchronized
JS post download file
dropout层