Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ isOptional
Function
isOptional
deps/npm/lib/commands/ls.js:239–240 ·
view source on GitHub ↗
(node)
Source
from the content-addressed store, hash-verified
237
}
238
239
const
isOptional = (node) =>
240
node[_type] ===
'optional'
|| node[_type] ===
'peerOptional'
241
242
const
isExtraneous = (node, { global }) =>
243
node.extraneous && !global
Callers
3
getProblems
Function · 0.85
getHumanOutputItem
Function · 0.85
getJsonOutputItem
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected