在es6中,我可以这样做:
const { findIndex, last } from 'lodash';
我可以在commonjs中使用require做同样的事情吗?
commonjs node.js
commonjs ×1
node.js ×1