Skip to content

Instantly share code, notes, and snippets.

@vladima
Created May 28, 2015 23:57
Show Gist options
  • Save vladima/c3d4647b277e85e266ab to your computer and use it in GitHub Desktop.
Save vladima/c3d4647b277e85e266ab to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Text</title>
<script src="system.src.js"></script>
</head>
<body>
<script>
System.paths = {
'*': '*.js',
'lodash':'node_modules/lodash/index.js'
}
System.import("main");
</script>
</body>
</html>
System.register(['lodash'], function(exports_1) {
var _;
var r;
return {
setters:[
function (__) {
_ = __;
}],
execute: function() {
r = _.filter([1, 2, 3], (function (x) { return x == 1; }));
console.log(r);
}
}
});
import * as _ from 'lodash';
var r = _.filter([1, 2, 3], (x => x == 1));
console.log(r);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment