Last active
April 26, 2018 11:08
-
-
Save dmnsgn/5fddc4eaeaed76727eaacd825c6b27f8 to your computer and use it in GitHub Desktop.
Revisions
-
dmnsgn revised this gist
Apr 26, 2018 . No changes.There are no files selected for viewing
-
dmnsgn created this gist
Apr 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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;