Allan & Steve are the chubby founders of LessEverything. This is their blog, hear them rant, praise, give advice and talk about Just Stuff, Less Accounting, Lovd by Less, More Honey, Less Memories, Code, Business, Design, Marketing
Chat with Us
June 21st, 2007

Steve's Array Cheatsheet for JavaScript & Ruby

written by Steven Bristol

JavaScript

array.push(thing to push)

Ruby

array << thing to push

Notes

  1. Although Array#push works in ruby, array#<< does not work in javascript.

(I just spent 45 minutes debugging this ;)

Leave a Reply