MCPcopy Index your code
hub / github.com/nodejs/node / isObjectKeysOrEntries

Function isObjectKeysOrEntries

tools/eslint-rules/must-call-assert.js:9–15  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

7const assertModuleSpecifier = '/^(node:)?assert(.strict)?$/';
8
9const isObjectKeysOrEntries = (node) =>
10 node.type === 'CallExpression' &&
11 node.callee.type === 'MemberExpression' &&
12 node.callee.object.type === 'Identifier' &&
13 node.callee.object.name === 'Object' &&
14 node.callee.property.type === 'Identifier' &&
15 ['keys', 'entries'].includes(node.callee.property.name);
16
17const isPromiseAllCallArg = (node) =>
18 node.parent?.type === 'CallExpression' &&

Callers 1

findEnclosingFunctionFunction · 0.85

Calls 1

includesMethod · 0.80

Tested by

no test coverage detected