Skip to content

Instantly share code, notes, and snippets.

@dmnsgn
Last active April 26, 2018 11:08
Show Gist options
  • Save dmnsgn/5fddc4eaeaed76727eaacd825c6b27f8 to your computer and use it in GitHub Desktop.
Save dmnsgn/5fddc4eaeaed76727eaacd825c6b27f8 to your computer and use it in GitHub Desktop.

Revisions

  1. dmnsgn revised this gist Apr 26, 2018. No changes.
  2. dmnsgn created this gist Apr 16, 2018.
    7 changes: 7 additions & 0 deletions es-modules-in-the-browser-app.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import clamp from "lodash/clamp";

    const num = Infinity;
    const answer = clamp(num, 0, 42);
    console.log(answer);

    export default answer;