MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / destructuringPatternMatch

Function destructuringPatternMatch

lib/web/jshint.js:22460–22475  ·  view source on GitHub ↗
(tokens, value)

Source from the content-addressed store, hash-verified

22458 }
22459
22460 function destructuringPatternMatch(tokens, value) {
22461 var first = value.first;
22462
22463 if (!first)
22464 return;
22465
22466 _.zip(tokens, Array.isArray(first) ? first : [ first ]).forEach(function(val) {
22467 var token = val[0];
22468 var value = val[1];
22469
22470 if (token && value)
22471 token.first = value;
22472 else if (token && token.first && !value)
22473 warning("W080", token.first, token.first.value);
22474 });
22475 }
22476
22477 function blockVariableStatement(type, statement, context) {
22478 // used for both let and const statements

Callers 2

blockVariableStatementFunction · 0.85
jshint.jsFile · 0.85

Calls 2

warningFunction · 0.85
forEachMethod · 0.45

Tested by

no test coverage detected