UNPKG

eslint-plugin-unicorn

Version:
9 lines (7 loc) 211 B
'use strict'; const {uniq} = require('lodash'); // Get identifiers of given variable module.exports = ({identifiers, references}) => uniq([ ...identifiers, ...references.map(({identifier}) => identifier) ]);