Add snap() method
With this small release 2 "shortcut" methods are added: snap() and snapKey().
The use case is: you have an array of elements ["first", "second", "third"] and you want to extract (random) just 1 element.
You don't want as output an array with 1 element, but you want that element.
For example before this release with this input array ["first", "second", "third"] with Draw class you could obtain: ["second"] (an array). With snap you could obtain "second".
Add
- Add snap() and snapKey() in Draw class. You can retry 1 item from array