code: function addIfNotExist(set, item) {
    if (set.has(item)) return true;
    set.add(item);
    return false;
  }
docs: Copyright (c) 2015-present, Waysact Pty Ltd
  
  This source code is licensed under the MIT license found in the
  LICENSE file in the root directory of this source tree.