| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:92b4eacf-4c36-b8fa-5c15-6d67bb2565c9 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DF66:9E70D:7A9A14:A862EC:6B05AD26 |
| html-safe-nonce | ae8660ae57dd170fdca6e23a6678b4f54c452af0cb7202f9eecd98dab197163b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY2OjlFNzBEOjdBOUExNDpBODYyRUM6NkIwNUFEMjYiLCJ2aXNpdG9yX2lkIjoiNjM1MDIwMzE0ODU4NTc3NDM3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 017795e51511b588296e109a088ee5bcab52156bca30ed1bf887fdffe115947b |
| hovercard-subject-tag | repository:23280209 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/binarix/js |
| twitter:image | https://opengraph.githubassets.com/98679d10d83cd99aca4063f4115e3288fc4554767f0d0bc21bb41a0d1d9494c1/binarix/js |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98679d10d83cd99aca4063f4115e3288fc4554767f0d0bc21bb41a0d1d9494c1/binarix/js |
| og:image:alt | A JavaScript Quality Guide. Contribute to binarix/js development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0b0a75b576b64dfa32421a785f31f49ed1e3a5d21b783307a7fd78864bf2e1d |
| turbo-cache-control | no-cache |
| go-import | github.com/binarix/js git https://github.com/binarix/js.git |
| octolytics-dimension-user_id | 4037156 |
| octolytics-dimension-user_login | binarix |
| octolytics-dimension-repository_id | 23280209 |
| octolytics-dimension-repository_nwo | binarix/js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 19868645 |
| octolytics-dimension-repository_parent_nwo | bevacqua/js |
| octolytics-dimension-repository_network_root_id | 19868645 |
| octolytics-dimension-repository_network_root_nwo | bevacqua/js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d5f39f9528ff412d5d29191dbe92c097ad1b33e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/binarix/js#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarix%2Fjs |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbinarix%2Fjs |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=binarix%2Fjs |
| Reload | https://github.com/binarix/js |
| Reload | https://github.com/binarix/js |
| Reload | https://github.com/binarix/js |
| binarix | https://github.com/binarix |
| js | https://github.com/binarix/js |
| Code | https://github.com/binarix/js |
| Pull requests | https://github.com/binarix/js/pulls |
| Actions | https://github.com/binarix/js/actions |
| Projects | https://github.com/binarix/js/projects |
| Wiki | https://github.com/binarix/js/wiki |
| Security and quality | https://github.com/binarix/js/security |
| Insights | https://github.com/binarix/js/pulse |
| https://github.com/binarix/js |
| js | https://github.com/binarix/js |
| bevacqua/js | https://github.com/bevacqua/js |
| Notifications | https://github.com/login?return_to=%2Fbinarix%2Fjs |
| Fork0 (0) | https://github.com/login?return_to=%2Fbinarix%2Fjs |
| Star0 (0) | https://github.com/login?return_to=%2Fbinarix%2Fjs |
| bevacqua.io | https://bevacqua.io |
| Readme | https://github.com/binarix/js#readme-ov-file |
| MIT license | https://github.com/binarix/js#MIT-1-ov-file |
| Activity | https://github.com/binarix/js/activity |
| 0 forks | https://github.com/binarix/js/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fbinarix%2Fjs&report=binarix+%28user%29 |
| Branches | https://github.com/binarix/js/branches |
| Tags | https://github.com/binarix/js/tags |
| https://github.com/binarix/js/branches |
| https://github.com/binarix/js/tags |
| 25 Commits | https://github.com/binarix/js/commits/master/ |
| https://github.com/binarix/js/commits/master/ |
| .editorconfig | https://github.com/binarix/js/blob/master/.editorconfig |
| .editorconfig | https://github.com/binarix/js/blob/master/.editorconfig |
| LICENSE | https://github.com/binarix/js/blob/master/LICENSE |
| LICENSE | https://github.com/binarix/js/blob/master/LICENSE |
| README.md | https://github.com/binarix/js/blob/master/README.md |
| README.md | https://github.com/binarix/js/blob/master/README.md |
| README | https://github.com/binarix/js |
| MIT license | https://github.com/binarix/js |
| https://github.com/binarix/js#function-qualityguide-- |
| https://github.com/binarix/js#modules |
| CommonJS | http://wiki.commonjs.org/wiki/CommonJS |
| AMD | http://requirejs.org/docs/whyamd.html |
| ES6 Modules | http://eviltrout.com/2014/05/03/getting-started-with-es6.html |
| https://github.com/binarix/js#strict-mode |
| 'use strict'; | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/Strict_mode |
| https://github.com/binarix/js#spacing |
| .editorconfig | https://github.com/sindresorhus/editorconfig-sublime |
| https://github.com/binarix/js#semicolons |
| Don't rely on it | http://benalman.com/news/2013/01/advice-javascript-semicolon-haters/ |
| super complicated | http://www.2ality.com/2011/05/semicolon-insertion.html |
| https://github.com/binarix/js#style-checking |
| this is super painful | https://github.com/mdevils/node-jscs |
| https://github.com/binarix/js#linting |
| jslint | http://www.jslint.com/ |
| jshint | https://github.com/jshint/jshint/ |
| eslint | https://github.com/eslint/eslint |
| https://github.com/binarix/js#strings |
| https://github.com/binarix/js#bad |
| https://github.com/binarix/js#good |
| util.format in Node | http://nodejs.org/api/util.html#util_util_format_format |
| https://github.com/binarix/js#better |
| string templating engines like Jade | https://github.com/visionmedia/jade |
| https://github.com/binarix/js#variable-declaration |
| https://github.com/binarix/js#bad-1 |
| https://github.com/binarix/js#good-1 |
| https://github.com/binarix/js#acceptable |
| https://github.com/binarix/js#conditionals |
| Apple's SSL/TLS bug | https://www.imperialviolet.org/2014/02/22/applebug.html |
| https://github.com/binarix/js#bad-2 |
| https://github.com/binarix/js#good-2 |
| their counterparts will attempt to cast the operands | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators |
| https://github.com/binarix/js#bad-3 |
| https://github.com/binarix/js#good-3 |
| https://github.com/binarix/js#ternary-operators |
| filled with nasty ternary operators | https://github.com/jquery/jquery/blob/c869a1ef8a031342e817a2c063179a787ff57239/src/ajax.js#L117 |
| https://github.com/binarix/js#bad-4 |
| https://github.com/binarix/js#good-4 |
| https://github.com/binarix/js#functions |
| function declaration form | http://stackoverflow.com/q/336859/389745 |
| function expressions | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/function |
| hoisting | https://github.com/buildfirst/buildfirst/tree/master/ch05/04_hoisting |
| https://github.com/binarix/js#bad-5 |
| https://github.com/binarix/js#good-5 |
| currying another function | http://ejohn.org/blog/partial-functions-in-javascript/ |
| https://github.com/binarix/js#good-6 |
| function declarations will be hoisted | https://github.com/buildfirst/buildfirst/tree/master/ch05/04_hoisting |
| https://github.com/binarix/js#bad-6 |
| https://github.com/binarix/js#good-7 |
| https://github.com/binarix/js#bad-7 |
| https://github.com/binarix/js#good-8 |
| substantial peformance hit | https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments |
| https://github.com/binarix/js#bad-8 |
| https://github.com/binarix/js#good-9 |
| https://github.com/binarix/js#bad-9 |
| https://github.com/binarix/js#good-10 |
| https://github.com/binarix/js#better-1 |
| https://github.com/binarix/js#bad-10 |
| https://github.com/binarix/js#good-11 |
| https://github.com/binarix/js#bad-11 |
| https://github.com/binarix/js#good-12 |
| https://github.com/binarix/js#prototypes |
| poser | https://github.com/bevacqua/poser |
| https://github.com/binarix/js#bad-12 |
| https://github.com/binarix/js#good-13 |
| https://github.com/binarix/js#object-literals |
| https://github.com/binarix/js#array-literals |
| Learn about the basics | http://blog.ponyfoo.com/2013/11/19/fun-with-native-arrays |
| .forEach | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach |
| .slice | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice |
| .splice | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice |
| .join | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join |
| .concat | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat |
| .unshift | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift |
| .shift | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift |
| .push | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push |
| .pop | https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop |
| .filter | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter |
| .map | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/map |
| .reduce | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce |
| .reduceRight | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight |
| .some | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/some |
| .every | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/every |
| .sort | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/sort |
| .reverse | https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse |
| https://github.com/binarix/js#regular-expressions |
| https://github.com/binarix/js#bad-13 |
| https://github.com/binarix/js#good-14 |
| learn how to write regular expressions | http://blog.ponyfoo.com/2013/05/27/learn-regular-expressions |
| visualize them online | http://www.regexper.com/#%2F%5Cd%2B%2F |
| https://github.com/binarix/js#console-statements |
| https://github.com/binarix/js#comments |
| https://github.com/binarix/js#bad-14 |
| https://github.com/binarix/js#good-15 |
| https://github.com/binarix/js#variable-naming |
| https://github.com/binarix/js#bad-15 |
| https://github.com/binarix/js#good-16 |
| https://github.com/binarix/js#polyfills |
| a polyfill that provides that behavior | http://remysharp.com/2010/10/08/what-is-a-polyfill/ |
| wrap all uses of the patching code | http://blog.ponyfoo.com/2014/08/05/building-high-quality-front-end-modules |
| https://github.com/binarix/js#everyday-tricks |
| falsy | http://james.padolsey.com/javascript/truthy-falsey/ |
| partially-apply | http://ejohn.org/blog/partial-functions-in-javascript/ |
| event emitters | https://github.com/bevacqua/contra#%CE%BBemitterthing-options |
| https://github.com/binarix/js#license |
| https://github.com/binarix/js |
| bevacqua.io | https://bevacqua.io |
| Readme | https://github.com/binarix/js#readme-ov-file |
| MIT license | https://github.com/binarix/js#MIT-1-ov-file |
| Activity | https://github.com/binarix/js/activity |
| 0 forks | https://github.com/binarix/js/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fbinarix%2Fjs&report=binarix+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |