Created
February 5, 2017 18:14
-
-
Save just-boris/b73dafe0718e5878a943c15f46773ca2 to your computer and use it in GitHub Desktop.
Testcase for fast-memoize and webpack
This file contains 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 characters
import memoize from 'fast-memoize'; | |
function sum(a, b) { | |
return a + b; | |
} | |
const memoSum = memoize(sum); | |
console.log(sum(1, 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment