MCPcopy Index your code
hub / github.com/cazala/synaptic / value

Function value

test/synaptic.js:365–374  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

363 };
364
365 var value = function (array) {
366 var max = .5;
367 var res = -1;
368 for (var i in array)
369 if (array[i] > max) {
370 max = array[i];
371 res = i;
372 }
373 return res == -1 ? '-' : targets[res];
374 };
375
376 it("targets: " + targets, function () {
377 assert(true);

Callers 1

synaptic.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected