MCPcopy Index your code
hub / github.com/microsoft/SandDance / arrayToHash

Function arrayToHash

docs/tests/v2/es6/js/sanddance.js:7883–7889  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

7881}
7882
7883function arrayToHash(array) {
7884 var hash = {};
7885 array.forEach(function (val, idx) {
7886 hash[val] = true;
7887 });
7888 return hash;
7889}
7890
7891function formatValue(ctx, value, recurseTimes) {
7892 // Provide a hook for user-specified inspect functions.

Callers 1

formatValueFunction · 0.85

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected