Groups a table-like array by a column
##Example##
[{name: 'Gene', team: 'team alpha'},
{name: 'George', team: 'team beta'},
{name: 'Steve', team: 'team gamma'},
{name: 'Paula', team: 'team beta'},
{name: 'Scruath of the 5th sector', team: 'team gamma'}].group('team');
// Result:
{
"team alpha":
[{"name":"Gene","team":"team alpha"}],
"team beta":
[{"name":"George","team":"team beta"},
{"name":"Paula","team":"team beta"}],
"team gamma":
[{"name":"Steve","team":"team gamma"},
{"name":"Scruath of the 5th sector","team":"team gamma"}]
}
##License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2019 Lea Rosema
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.