我想检查两个字符串数组是否相等。
例如:
例如:
compare(["abc", "def"], ["def", "abc"])
应该返回true
,同样地,compare(["abc", "def"], ["def", "ghi"])
应该返回false
。
最佳的做法是什么?