Open main menu

CDOT Wiki β

Changes

User:Dhhodgin

1 byte added, 21:57, 18 October 2009
shorten()
Here is a list of code blocks I have written for the processing.js project
==== shorten() ====
Arrays in JS have no type the elements in them can contain any type and do not all have to match. Arrays are also passed by reference which means a reference to the object is passed in not the entire object. so my code creates a new array and then copies the passed in array first and then pops one element off the new array array and the newary object is returned. This is build built to accept a processing type of String, int, boolean, char, byte, and float.
p.shorten = function( ary ) {
1
edit