Created
June 10, 2018 16:32
-
-
Save awto/f16c71defd3ddf82961ca77fd6664306 to your computer and use it in GitHub Desktop.
abstract matters dup
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
function* dup(arr) { | |
for(const i of arr) { | |
yield i; | |
yield i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment