collection of JS array utilities