docs: function duplicates(arr, value, breakable) {
      var i = arr.length;
      var dupes = 0;
      while (i--) {
          if (breakable && dupes > 0)
              break;
          if (is_1.isEqual(arr[i], value))
              dupes += 1;
      }
      return dupes;
  }