MCPcopy 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
239const isOptional = (node) =>
240 node[_type] === 'optional' || node[_type] === 'peerOptional'
241
242const isExtraneous = (node, { global }) =>
243 node.extraneous && !global

Callers 3

getProblemsFunction · 0.85
getHumanOutputItemFunction · 0.85
getJsonOutputItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected