MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / duplicates

Function duplicates

curriculum/src/build-superblock.ts:26–26  ·  view source on GitHub ↗
(xs: T[])

Source from the content-addressed store, hash-verified

24const log = debug('fcc:build-superblock');
25
26const duplicates = <T>(xs: T[]) => xs.filter((x, i) => xs.indexOf(x) !== i);
27
28const createValidator = (throwOnError?: boolean) => (fn: () => void) => {
29 try {

Callers 1

validateChallengesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected