function targetsEqual(target, otherTarget) {
  target = isArray(target) ? target : [ target ];
  otherTarget = isArray(otherTarget) ? otherTarget : [ otherTarget ];

  return target.length === otherTarget.length
    && every(target, function(element) {
      return otherTarget.includes(element);
    });
}
@param {ContextPadTarget} target
@param {ContextPadTarget} otherTarget

@return {boolean}