ArrayTool
by Ruben
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..
Comments (also 3 trackbacks, click to show)
Trackbacks:
“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….
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.
It’s cool!
Really cool!
Very useful!