ArrayTool

It’s been a while since my last post, so I decided to quickly drop by and leave a little present. This is my ArrayTool utility with no less than two methods! (oh happy day)

Go check it out right here:
Documentation
Source

Again, no demo since the usage of this class can pretty much be anything really.

As I said, this isn’t exactly one of my most filled classes, but the two methods inside kind of compensate for that.
adjustValues() lets you increase/decrease/multiply/divide all values of an Array all at once.
getValueMatchIndex() gives you the index of an Array-item where a certain property has a certain value (also works for nested properties).

Leave me a comment if anything is unclear..

4 Responses

Note that comments are displayed in reverse chronological order with topmost comments being freshest. Subscribe | Comment
  • crux says so:
    July 9th, 2008 | Quote

    It’s cool! ;)

  • Ruben says so:
    May 9th, 2007 | Quote

    Hehe, man you almost got me blushing, cut it out ;) No just kidding, keep ‘em coming, it’s good to hear when people find stuff useful, so thanks.

  • Maikel Sibbald says so:
    May 8th, 2007 | Quote

    “this class can pretty much be anything really”…….WOW…
    No just joking, as I told you before, good work. Ijust love these little classe that make my work a little bit easier….

Trackbacks:

Leave a Reply