profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

JavaScript Named parameters

Introduction

Introduced with ES6

Syntax

function selectEntries({ start = 0, end = -1, step = 1 } = {}) {
  console.log(start)
  console.log(end)
  console.log(step)
}

selectEntries()

See also