MCPcopy Create free account
hub / github.com/hoothin/UserScripts / toArray

Function toArray

Picviewer CE+/Picviewer CE+.user.js:11781–11785  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

11779 // array helpers
11780
11781 function toArray(input) {
11782 var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
11783
11784 return Array.prototype.slice.call(input);
11785 }
11786
11787 function fillArray(length) {
11788 return Array.apply(null, Array(length)).map(function () {

Callers 1

bricksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected