Skip to content

Instantly share code, notes, and snippets.

@sevperez
Created July 8, 2018 21:35
Show Gist options
  • Save sevperez/dc4d9992ae72e13b7af7e2fbe5173832 to your computer and use it in GitHub Desktop.
Save sevperez/dc4d9992ae72e13b7af7e2fbe5173832 to your computer and use it in GitHub Desktop.
var prices = [400, 80, 375, 870];
Object.defineProperty(prices, 1, { enumerable: false });
for (var k in prices) {
console.log(prices[k]);
}
// logs 400, 375, 870 ... the 80 is missing!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment