comma separated placeholder


/ Published in: Ruby
Save to your folder(s)



Copy this code and paste it in your HTML
  1. values = [1, 2, 3]
  2. # => [1, 2, 3]
  3.  
  4. s = '?' * values.size
  5. # => "???"
  6.  
  7. csv = s.split(//).join(',')
  8. # => "?,?,?"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.