v2.2.4
Patch release
-
Implemented a new
ArrayViewobject class.
Just like its "cousins"MapViewandSetView, it can raise events whenever elements are added or removed. -
Implemented a new
Random.Splitmethod.
It can split a numeric value or an array into a given number of parts, with elements equally-randomly distributed between each part.Yeah... I know... I doesn't make sense... It easier to show than to explain... 馃槄
Random.Split(100, 3); // [28, 41, 31] Random.Split(10, 4); // [3, 1, 4, 2] Random.Split([1, 2, 3, 4, 5], 2); // [[1, 2], [3, 4, 5]] Random.Split([1, 2, 3, 4, 5], 2); // [[1, 2, 3, 4], [5]] Random.Split("abcdef", 3); // [["a"], ["b", "c", "d"], ["e", "f"]]
-
Added a new
ResponseExceptionobject class.
You can use it to wrap and throw afetchresponse that failed with a error status code or whose body is malformed. -
Minor improvements. & Updated dependencies.
Full Changelog: v2.2.3...v2.2.4