Skip to content

Instantly share code, notes, and snippets.

@AleksandrChukhray
Created July 6, 2019 19:39
Show Gist options
  • Select an option

  • Save AleksandrChukhray/a7e74bf4ee2bfdcd76ebc6364c7593ec to your computer and use it in GitHub Desktop.

Select an option

Save AleksandrChukhray/a7e74bf4ee2bfdcd76ebc6364c7593ec to your computer and use it in GitHub Desktop.
const k = Object.create(Object.prototype); // => {} with Object.prototype
const l = Object.create(null) // without prototype
const m = new Object(); // => {} with Object.prototype
const f = {} // => {} with Object.prototype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment