MCPcopy Create free account
hub / github.com/nodejs/node / Filter

Function Filter

tools/gyp/pylib/gyp/input.py:1605–1608  ·  view source on GitHub ↗

Removes item from items.

(items, item)

Source from the content-addressed store, hash-verified

1603
1604
1605def Filter(items, item):
1606 """Removes item from items."""
1607 res = {}
1608 return [res.setdefault(e, e) for e in items if e != item]
1609
1610
1611def RemoveSelfDependencies(targets):

Callers 2

RemoveSelfDependenciesFunction · 0.70

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected