Sha256: 17086851f091310547c07338d71a2a2a80285a0f767904d7631249df0965bd0e
Contents?: true
Size: 375 Bytes
Versions: 13
Compression:
Stored size: 375 Bytes
Contents
// If the node is a type of assignment or if the node is a paren and nested // inside that paren is a node that is a type of assignment. function containsAssignment(node) { return ( node && (["assign", "massign", "opassign"].includes(node.type) || (Array.isArray(node.body) && node.body.some(containsAssignment))) ); } module.exports = containsAssignment;
Version data entries
13 entries across 13 versions & 1 rubygems