LoginSignup
6
5

More than 5 years have passed since last update.

任意の要素数の、密な配列を1行で生成する

Posted at
Array.apply(null, Array(100)).map(function () { return "hoge" })

もしくは

Array(100).join().split(',').map(function () { return "hoge" })
6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5