Created
December 5, 2017 01:35
-
-
Save moimikey/811b6e227979731bd00d955de91ebf8c to your computer and use it in GitHub Desktop.
fill array with value of variable in javascript in 49 bytes
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
const o = { a: true }; | |
[...Array(9)].map(Function.prototype.valueOf, o); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment