Files
test-repo/src/language-html/utils/array-to-map.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
183 B
JavaScript
Raw Normal View History

"use strict";
function arrayToMap(array) {
const map = Object.create(null);
for (const value of array) {
map[value] = true;
}
return map;
}
module.exports = arrayToMap;