Sha256: b0c563a315e5e849f62282853fec4cb3eff53581042c0076b5c7fb1618960395
Contents?: true
Size: 534 Bytes
Versions: 5
Compression:
Stored size: 534 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // 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) { if (!node) { return false; } if (["assign", "massign", "opassign"].includes(node.type)) { return true; } const anyNode = node; return Array.isArray(anyNode.body) && anyNode.body.some(containsAssignment); } exports.default = containsAssignment;
Version data entries
5 entries across 5 versions & 1 rubygems