MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / arrayToHash

Function arrayToHash

lib/web/jshint.js:999–1007  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

997
998
999function arrayToHash(array) {
1000 var hash = {};
1001
1002 array.forEach(function(val, idx) {
1003 hash[val] = true;
1004 });
1005
1006 return hash;
1007}
1008
1009
1010function formatValue(ctx, value, recurseTimes) {

Callers 1

formatValueFunction · 0.85

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected