Created
November 21, 2019 14:10
-
-
Save dubistdu/cdc4637afa39da9e3fbd283f8ca6c802 to your computer and use it in GitHub Desktop.
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
function pyramid(n) { | |
return Array(n).fill(1).map((elemeent, index) => Array(index + 1).fill(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment