Skip to content

Instantly share code, notes, and snippets.

View shousper's full-sized avatar
🌤️
Sometimes there aren't limitations

Corey McGregor shousper

🌤️
Sometimes there aren't limitations
View GitHub Profile
@shousper
shousper / index.html
Last active October 9, 2018 00:55 — forked from RubaXa/index.html
for-in +/- hasOwnProperty vs. Object.keys vs. Сached keys (http://jsbench.github.io/#0ef90fc0dfc3dafcb4be1230f4834946) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for-in +/- hasOwnProperty vs. Object.keys vs. Сached keys</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>