Summarization methods for JS arrays