Created
January 24, 2017 23:18
-
-
Save basekays/808c26e384f5912d1bb647d9e387e955 to your computer and use it in GitHub Desktop.
reduce
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 characters
| var memoInCallback, itemInCallback; | |
| _.reduce(['item'], function(memo, item) { | |
| memoInCallback = memo; | |
| itemInCallback = item; | |
| }, 'memo'); | |
| expect(memoInCallback).to.equal('memo'); | |
| expect(itemInCallback).to.equal('item'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment