Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid es5-isms

  • Loading branch information...
commit 69dd5d3900c25ed9164a323b8956282de5b63188 1 parent e364dd4
@substack authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -1,11 +1,11 @@
var entities = require('./entities.json');
var revEntities = {};
-Object.keys(entities).forEach(function (key) {
+for (var key in entities) {
var e = entities[key];
var s = typeof e === 'number' ? String.fromCharCode(e) : e;
revEntities[s] = key;
-});
+}
exports.encode = function (str) {
if (typeof str !== 'string') {
Please sign in to comment.
Something went wrong with that request. Please try again.