Last active
July 20, 2020 01:36
-
-
Save cyberfly/0a98bcce7fab7cc6eb10868a7f140810 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.isEqual(_.sortBy(array1), _.sortBy(array2)) | |
// example | |
validateArray(field_key) { | |
let original_array = this.pre_toggle_data[field_key]; | |
let new_array = this.task_data[field_key]; | |
// check contains the same value | |
if (_.isEqual(_.sortBy(original_array), _.sortBy(new_array))) { | |
return false; | |
} | |
return true; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment