kazootttKazooTTT Blog
  • 往期整理
    • 历史归档
    • 文章分类
    • 文章标签
  • 关于
  • 友链
往期整理
历史归档
文章分类
文章标签
关于
友链

how to find the repeated number of an array?

0%
1. what is the difference between map and object?2. how to get the target item from a array?

1. what is the difference between map and object?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#objects_vs._maps
  1. the key of the map can be any type, but the key of the object only can be string or symbol.
  1. the map has order.

2. how to get the target item from a array?

use the find api of the Array Array.prototype.find()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
how to use:
上一篇
how to check if a key is in the Object
下一篇
2024-W17
下一篇

2024-W17
2025-8-18
最新发布
Cherry Studio 提示词模板(2026-07-14)
Cherry Studio 提示词模板(2026-07-14)
2026-11-2
Thino 页面触发 Linter 自动插入 Frontmatter 的排查与解决
Thino 页面触发 Linter 自动插入 Frontmatter 的排查与解决
2026-11-2
衬线、字重与可变字体
衬线、字重与可变字体
2026-11-2
最近的变化-锻炼身体、调整学习状态
最近的变化-锻炼身体、调整学习状态
2026-11-2
Axios 全局 json-bigint 解析导致空原型对象渲染崩溃
Axios 全局 json-bigint 解析导致空原型对象渲染崩溃
2026-11-2
bug-form 回填错误
bug-form 回填错误
2026-11-2
分类
软件 (30)个人项目 (6)设计 (6)随笔 (14)前端 (42)翻译 (1)周刊 (7)Obsidian (15)年报 (5)AI (4)web3 (2)后端 (2)生活 (6)方法论 (1)月报 (1)周报 (18)旅行 (10)碎片 (5)项目 (8)frontend (1)推荐 (1)大模型 (1)git (1)编程 (2)blender (2)
0%
1. what is the difference between map and object?2. how to get the target item from a array?

相关文章

2024-W03-编程篇

2024-07-11

2024-W03

2024-07-11

how to check if a key is in the Object

2024-05-06

隐藏你的twitter信息

2023-03-16
kazoottt

KazooTTT Blog

kazoottt
友情链接
Tangly的学习笔记
NotionNext
开发者
Github
开发帮助
功能反馈
技术讨论
关于作者
支持
站长社群
咨询与定制
升级手册
安装教程
SEO推广
解决方案
建站工具
NotionNext
2023-2026
Powered byNotionNext 4.11.0.