MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / array_to_object

Function array_to_object

src/jslint.js:324–333  ·  view source on GitHub ↗
(array, value)

Source from the content-addressed store, hash-verified

322 'use strict';
323
324 function array_to_object(array, value) {
325
326// Make an object from an array of keys and a common value.
327
328 var i, length = array.length, object = {};
329 for (i = 0; i < length; i += 1) {
330 object[array[i]] = value;
331 }
332 return object;
333 }
334
335
336 var adsafe_id, // The widget's ADsafe id.

Callers 1

jslint.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…