javascript-practice:文章“10 个 Javascript 数组练习”的存储库-源码

上传者: 42129970 | 上传时间: 2021-08-03 18:04:36 | 文件大小: 110KB | 文件类型: ZIP
JavaScript 练习 我准备了 javascript 练习,希望能帮助您提高编码技能。 我并不肯定我的解决方案是解决每个练习的最佳方法,但我相信它们可以帮助您在遇到困难时找到一些新想法。 先决条件 npm i安装 jest 和 lint 数组练习 要运行检查您的解决方案,请使用npm run testArrays 。 此外,您可以通过运行npm run testArraysSolutions来检查我的。 任务清单 fill - 编写一个方法,用给定的值创建一个新数组。 reverse - 编写一个恢复输入数组的方法。 紧凑- 编写一个方法,从所有不必要的元素中清除数组,例如 false、未定义、空字符串、零、null。 fromPairs - 编写一个返回由键值对组成的对象的方法。 without - 编写一个返回没有列出值的数组的方法。 unique - 编写一个返回无重

文件下载

资源详情

[{"title":"( 87 个子文件 110KB ) javascript-practice:文章“10 个 Javascript 数组练习”的存储库-源码","children":[{"title":"javascript-practice-master","children":[{"title":"package.json <span style='color:#111;'> 868B </span>","children":null,"spread":false},{"title":"readme.md <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":".eslintrc.json <span style='color:#111;'> 710B </span>","children":null,"spread":false},{"title":"objects","children":[{"title":"exercises","children":[{"title":"05-is-equal.js <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"07-is-empty-deep.test.js <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"06-invoke.test.js <span style='color:#111;'> 828B </span>","children":null,"spread":false},{"title":"02. make-pairs.test.js <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"03-without.test.js <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"05-is-equal.test.js <span style='color:#111;'> 915B </span>","children":null,"spread":false},{"title":"08-is-equal-deep.test.js <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"09-intersection.test.js <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"10-intersection-deep.test.js <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false},{"title":"04-is-empty.test.js <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"01-is-plain-object.test.js <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"10-intersection-deep.js <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"09-intersection.js <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"08-is-equal-deep.js <span style='color:#111;'> 548B </span>","children":null,"spread":false},{"title":"04-is-empty.js <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"02-make-pairs.js <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"07-is-empty-deep.js <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"06-invoke.js <span style='color:#111;'> 523B </span>","children":null,"spread":false},{"title":"01-is-plain-object.js <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"03-without.js <span style='color:#111;'> 448B </span>","children":null,"spread":false}],"spread":false},{"title":"solutions","children":[{"title":"05-is-equal.js <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"07-is-empty-deep.test.js <span style='color:#111;'> 5.54KB </span>","children":null,"spread":false},{"title":"06-invoke.test.js <span style='color:#111;'> 840B </span>","children":null,"spread":false},{"title":"02. make-pairs.test.js <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"03-without.test.js <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"05-is-equal.test.js <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"08-is-equal-deep.test.js <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"09-intersection.test.js <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"10-intersection-deep.test.js <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"04-is-empty.test.js <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"01-is-plain-object.test.js <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"10-intersection-deep.js <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"09-intersection.js <span style='color:#111;'> 656B </span>","children":null,"spread":false},{"title":"08-is-equal-deep.js <span style='color:#111;'> 1.88KB </span>","children":null,"spread":false},{"title":"04-is-empty.js <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"02-make-pairs.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"07-is-empty-deep.js <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"06-invoke.js <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"01-is-plain-object.js <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"03-without.js <span style='color:#111;'> 501B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 250.78KB </span>","children":null,"spread":false},{"title":"arrays","children":[{"title":"exercises","children":[{"title":"04-from-pairs.js <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"05-without.js <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"07-is-equal.js <span style='color:#111;'> 481B </span>","children":null,"spread":false},{"title":"10-intersection.js <span style='color:#111;'> 369B </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"04-from-pairs.test.js <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":"10-intersection.test.js <span style='color:#111;'> 984B </span>","children":null,"spread":false},{"title":"09-chunk.test.js <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"01-fill.test.js <span style='color:#111;'> 183B </span>","children":null,"spread":false},{"title":"03-compact.test.js <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"08-flatten.test.js <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"06-unique.test.js <span style='color:#111;'> 759B </span>","children":null,"spread":false},{"title":"07-is-equal.test.js <span style='color:#111;'> 903B </span>","children":null,"spread":false},{"title":"02-reverse.test.js <span style='color:#111;'> 714B </span>","children":null,"spread":false},{"title":"05-without.test.js <span style='color:#111;'> 570B </span>","children":null,"spread":false}],"spread":true},{"title":"02-reverse.js <span style='color:#111;'> 300B </span>","children":null,"spread":false},{"title":"03-compact.js <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"01-fill.js <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"09-chunk.js <span style='color:#111;'> 405B </span>","children":null,"spread":false},{"title":"06-unique.js <span style='color:#111;'> 362B </span>","children":null,"spread":false},{"title":"08-flatten.js <span style='color:#111;'> 325B </span>","children":null,"spread":false}],"spread":false},{"title":"solutions","children":[{"title":"04-from-pairs.js <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"05-without.js <span style='color:#111;'> 983B </span>","children":null,"spread":false},{"title":"07-is-equal.js <span style='color:#111;'> 588B </span>","children":null,"spread":false},{"title":"10-intersection.js <span style='color:#111;'> 613B </span>","children":null,"spread":false},{"title":"__tests__","children":[{"title":"04-from-pairs.test.js <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"10-intersection.test.js <span style='color:#111;'> 996B </span>","children":null,"spread":false},{"title":"09-chunk.test.js <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"01-fill.test.js <span style='color:#111;'> 195B </span>","children":null,"spread":false},{"title":"03-compact.test.js <span style='color:#111;'> 448B </span>","children":null,"spread":false},{"title":"08-flatten.test.js <span style='color:#111;'> 414B </span>","children":null,"spread":false},{"title":"06-unique.test.js <span style='color:#111;'> 1008B </span>","children":null,"spread":false},{"title":"07-is-equal.test.js <span style='color:#111;'> 915B </span>","children":null,"spread":false},{"title":"02-reverse.test.js <span style='color:#111;'> 978B </span>","children":null,"spread":false},{"title":"05-without.test.js <span style='color:#111;'> 779B </span>","children":null,"spread":false}],"spread":true},{"title":"02-reverse.js <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"03-compact.js <span style='color:#111;'> 374B </span>","children":null,"spread":false},{"title":"01-fill.js <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"09-chunk.js <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"06-unique.js <span style='color:#111;'> 698B </span>","children":null,"spread":false},{"title":"08-flatten.js <span style='color:#111;'> 351B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 262B </span>","children":null,"spread":false},{"title":"babel.config.js <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明