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..

7 Responses to “ArrayTool”

  1. “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….

  2. Ruben says:

    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.

  3. crux says:

    It’s cool! ;)

  4. Kz says:

    Really cool!

  5. [...] cosas a comentar, la 1º es que los métodos que propone Fede usan las clases de ArrayTools, que yo importo desde mi paquete utils. Y la 2º ver que el almacenamiento de información se hace [...]

  6. ??? says:

    ???~!! ????? ?

Leave a Reply