get-variable-identifiers.js 186 B

1234567
  1. 'use strict';
  2. // Get identifiers of given variable
  3. module.exports = ({identifiers, references}) => [...new Set([
  4. ...identifiers,
  5. ...references.map(({identifier}) => identifier),
  6. ])];