MCPcopy
hub / github.com/ilearnio/module-alias / addPathHelper

Function addPathHelper

index.js:62–67  ·  view source on GitHub ↗
(path, targetArray)

Source from the content-addressed store, hash-verified

60}
61
62function addPathHelper (path, targetArray) {
63 path = nodePath.normalize(path)
64 if (targetArray && targetArray.indexOf(path) === -1) {
65 targetArray.unshift(path)
66 }
67}
68
69function removePathHelper (path, targetArray) {
70 if (targetArray) {

Callers 1

addPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected