modules.expect.txt 1.0 KB

12345678
  1. <span class="hljs-comment">//------ underscore.js ------</span>
  2. <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">obj</span>) </span>{};
  3. <span class="hljs-keyword">export</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">each</span>(<span class="hljs-params">obj, iterator, context</span>) </span>{};
  4. <span class="hljs-keyword">export</span> { each <span class="hljs-keyword">as</span> forEach };
  5. <span class="hljs-keyword">export</span> <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">something</span>(<span class="hljs-params"></span>) </span>{};
  6. <span class="hljs-comment">//------ main.js ------</span>
  7. <span class="hljs-keyword">import</span> _, { each, something <span class="hljs-keyword">as</span> otherthing } <span class="hljs-keyword">from</span> <span class="hljs-string">'underscore'</span>;