Skip to content
Snippets Groups Projects
Select Git revision
  • ea2e4639017f8ec64ad5870e49766ce56aeaf6fa
  • annotation-on-video default protected
  • demo_ci
  • 3-upstream-01022023
  • master
  • gh3538-captions
  • 16-adapt-for-images-annot
  • 15-api-for-annotations-on-video
  • 15-annotations-on-videos
  • video_for_annotations
  • wip-1-annotations-on-videos
  • 9-videoviewer-tests
  • 9_wip_videotests
  • 6-fix-tests-and-ci
  • _fix_ci
  • wip-webpack-from-git
16 results

jest-puppeteer.config.js

Blame
  • utils.js 219 B
    /**
     * Remove duplicate elements in array
     *
     * */
    export const removeDuplicates = (arr) => {
      return arr.reduce((acc, curr) => {
        if (!acc.includes(curr)) {
          acc.push(curr);
        }
        return acc;
      }, []);
    };