MCPcopy Create free account
hub / github.com/babel/babel / toPathString

Function toPathString

packages/babel-parser/test/helpers/difference.js:148–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 isInt(key) ? `[${key}]` : isIdentifierName(key) ? `.${key}` : `["${key}"]`;
147
148const toPathString = path => path.map(toAccess).join("");

Callers 1

constructorMethod · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected