-
Notifications
You must be signed in to change notification settings - Fork 9
ArrayExt
Will Blanton edited this page Jul 6, 2018
·
6 revisions
This is an Extension! Learn about using Extensions here!
Converts an array of strings to an array of itegers
Checks whether or not an array contains a value or object
Returns a random element from an array
shuffles an array in place and returns it
Merges a second array (of the same type) into the first array
["0", "1", "2", "3"].strings_to_ints(); // [0, 1, 2, 3]
["apple", "orange", "banana"].contains("apple"); // true
[0, 1, 2, 3].get_random(); // 2
[0, 1, 2, 3].shuffle(); // [2, 1, 3, 0]
[0, 1].merge([2, 3]); // [0, 1, 2, 3]
For more info, please check out the API: http://01010111.com/zerolib/