frankdevhub / frankdevhub.github.io

Blog template powered by jekyll to share the interesting stories in life (基于Jekyll的模板引擎的维基风格的个人博客,记录分享生活中的新鲜故事)
http://blog.frankdevhub.site
MIT License
5 stars 3 forks source link

判断两个数组是否相似 (arraysSimilar) #18

Open frankdevhub opened 5 years ago

frankdevhub commented 5 years ago

https://www.frankdevhub.site/2015/04/06/arrays-similar/

题目题目题目来自 慕课网 JavaScript 深入浅出 1-6 编程练习请在 index.html 文件中,编写 arraysSimilar 函数,实现判断传入的两个数组是否相似。具体需求: 数组中的成员类型相同,顺序可以不同。例如 [1, true] 与 [false, 2] 是相似的。 数组的长度一...