Skip to content

Instantly share code, notes, and snippets.

@kharandziuk
Created April 24, 2017 16:09
Show Gist options
  • Select an option

  • Save kharandziuk/c85c8bc116879a0847d165782c72dad3 to your computer and use it in GitHub Desktop.

Select an option

Save kharandziuk/c85c8bc116879a0847d165782c72dad3 to your computer and use it in GitHub Desktop.
(currents, befores) => {
let found = false;
currents.find((current, index) => {
if (current !== befores[index]) {
unwatch();
repositioningTooltipService.hide();
found = true;
}
return found;
});
});
(currents, befores) => {
let item = currents.find((current, index) =>
current !== befores[index]
);
if(item) {
unwatch();
repositioningTooltipService.hide();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment