Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Programming
  4. JavaScript ES6+

Programming · Cheatsheet

JavaScript ES6+ Cheatsheet

Modern JavaScript syntax: destructuring, arrow functions, promises, modules, and built-in methods

59 commands 9 sections

On this sheet

Variables & Declarations 6 Arrow Functions 5 Template Literals & Strings 8 Spread & Rest 5 Array Methods 12 Objects & Classes 9 Promises & Async 7 Modules 6 Sources 1

No entry matches that filter.

Variables & Declarations

  • const x = 1 Block-scoped, read-only constant
  • let y = 2 Block-scoped variable
  • const [a, b] = [1, 2] Array destructuring
  • const { name, age } = obj Object destructuring
  • const { name: n } = obj Destructuring with rename
  • const { x = 10 } = obj Destructuring with default

Arrow Functions

  • const fn = (a, b) => a + b Arrow function (implicit return)
  • const fn = (a) => { return a * 2 } Arrow function with body
  • const fn = a => a * 2 Single param (no parens needed)
  • arr.map(x => x * 2) Arrow function as callback
  • arr.filter(x => x > 5) Filter with arrow function

Template Literals & Strings

  • `Hello ${name}` Template literal with interpolation
  • `multi\nline` Multi-line string
  • str.includes("sub") Check if string contains substring
  • str.startsWith("pre") Check if starts with
  • str.endsWith("suf") Check if ends with
  • str.repeat(3) Repeat string n times
  • str.padStart(5, "0") Pad string from start
  • str.trimStart() / str.trimEnd() Trim whitespace from start/end

Spread & Rest

  • [...arr1, ...arr2] Spread arrays (merge)
  • { ...obj1, ...obj2 } Spread objects (merge)
  • const [first, ...rest] = arr Rest in destructuring
  • function fn(...args) {} Rest parameters
  • fn(...args) Spread as function arguments

Array Methods

  • arr.map(fn) Transform each element
  • arr.filter(fn) Keep elements matching condition
  • arr.reduce(fn, init) Reduce to single value
  • arr.find(fn) Find first matching element
  • arr.findIndex(fn) Find index of first match
  • arr.some(fn) Test if any element matches
  • arr.every(fn) Test if all elements match
  • arr.includes(val) Check if value exists
  • arr.flat(depth) Flatten nested arrays
  • arr.flatMap(fn) Map then flatten one level
  • Array.from(iterable) Create array from iterable
  • structuredClone(obj) Deep clone object/array

Objects & Classes

  • { name, age } Shorthand property names
  • { [key]: value } Computed property names
  • { method() {} } Shorthand method
  • Object.keys(obj) Get array of keys
  • Object.values(obj) Get array of values
  • Object.entries(obj) Get array of [key, value] pairs
  • Object.assign({}, obj) Shallow copy / merge objects
  • obj?.nested?.prop Optional chaining
  • val ?? defaultVal Nullish coalescing

Promises & Async

  • new Promise((resolve, reject) => {}) Create a promise
  • promise.then(fn).catch(fn) Handle promise result/error
  • async function fn() {} Async function declaration
  • const result = await promise Await promise resolution
  • Promise.all([p1, p2]) Wait for all promises
  • Promise.allSettled([p1, p2]) Wait for all (resolved or rejected)
  • Promise.race([p1, p2]) First promise to settle wins

Modules

  • export const x = 1 Named export
  • export default fn Default export
  • import { x } from "./mod" Named import
  • import fn from "./mod" Default import
  • import * as mod from "./mod" Import all as namespace
  • const mod = await import("./mod") Dynamic import

Sources

  • https://tc39.es/ecma262/multipage/ TC39 ECMAScript specification: language syntax and built-in behavior.

Related cheatsheets

  • Barcode Formats40 commands
  • Python Essentials59 commands
  • Regular Expressions44 commands

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor