MCPcopy Index your code
hub / github.com/github/docs / findDupesInArray

Function findDupesInArray

tests/rendering/server.js:883–885  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

881
882describe('search', () => {
883 function findDupesInArray(arr) {
884 return lodash.filter(arr, (val, i, iteratee) => lodash.includes(iteratee, val, i + 1))
885 }
886 // SKIPPING: Can we have duplicate IDs? search-input-container and search-results-container are duplicated for mobile and desktop
887 // Docs Engineering issue: 969
888 it.skip('articles pages do not render any elements with duplicate IDs', async () => {

Callers 1

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected