mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 14:13:47 +01:00
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
/* */
|
|
var $def = require("./$.def");
|
|
$def($def.S, 'Array', {of: function of() {
|
|
var index = 0,
|
|
length = arguments.length,
|
|
result = new (typeof this == 'function' ? this : Array)(length);
|
|
while (length > index)
|
|
result[index] = arguments[index++];
|
|
result.length = length;
|
|
return result;
|
|
}});
|