0

How do import a MOUT module, eg array equals, into a file using JSPM?

Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
mynameisnotallowed
  • 564
  • 1
  • 11
  • 34
  • 1
    Sorry for removing those tags, it just sounded as if you only had problems installing and using jspm, not to write ES6 syntax. – Bergi Jul 24 '15 at 14:17

1 Answers1

1

One option is to install the latest version from NPM:

jspm install npm:mout

and use it like this:

import equals from 'mout/array/equals';
console.log(equals([1], [2], function() {
  console.log(arguments);
}));
Oleksii Rudenko
  • 1,277
  • 12
  • 23