Changes

Jump to: navigation, search

User:Dhhodgin

1 byte added, 22:56, 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 original new array array and the newary is returned. This is build to accept a processing type of String, int, boolean, char, byte, and float.
p.shorten = function( ary ) {
1
edit

Navigation menu