matchElements

Returns true if all elements in array match with another array's elements. Index, and the number of times the element is present in each array doesn't matter

toMatch is the array to perform the check on elements is the array containing the elements that will be compared against

bool
matchElements
(
T
)
(,)

Examples

assert("Hello".matchElements("aeloH") == true);
assert("abcd".matchElements("cda") == false);

Meta